Mercurial > hg > ltpda
view m-toolbox/html_help/help/ug/constructor_examples_fsdata_content.html @ 52:daf4eab1a51e database-connection-manager tip
Fix. Default password should be [] not an empty string
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 07 Dec 2011 17:29:47 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
<!-- $Id: constructor_examples_fsdata_content.html,v 1.3 2008/03/30 20:40:04 ingo Exp $ --> <!-- -------------------------------------------------- --> <!-- --------------- BEGIN CONTENT FILE --------------- --> <!-- -------------------------------------------------- --> <!-- --------------- Link box: begin --------------- --> <table border="0" summary="Simple list" class="simplelist_nottable_last"> <tr> <td> <a href="constructor_examples_fsdata.html#empty">Construct empty FSDATA object</a> </td> </tr> <tr> <td> <a href="constructor_examples_fsdata.html#xml_file">Construct a FSDATA object by loading the object from a file</a> </td> </tr> <tr> <td> <a href="constructor_examples_fsdata.html#data_vector">Construct a FSDATA object from a data vector</a> </td> </tr> <tr> <td> <a href="constructor_examples_fsdata.html#data_freq_vector">Construct a FSDATA object from a data vector and frequency vector</a> </td> </tr> <tr> <td> <a href="constructor_examples_fsdata.html#data_frequency">Construct a FSDATA object from a data vector and the corresponding frequency</a> </td> </tr> <tr> <td> <a href="constructor_examples_fsdata.html#all">Construct a FSDATA object from a data vector, frequency vector and the corresponding frequency</a> </td> </tr> </table> <!-- --------------- Link box: end --------------- --> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="empty"></a>Construct empty FSDATA object</h2> <p>The following example creates an empty fsdata object</p> <div class="fragment"><pre class="programlisting"> f1 = fsdata() ----------- fsdata 01 ----------- name: None fs: 0 x: [0 0], double y: [0 0], double xunits: Hz yunits: --------------------------------- </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="xml_file"></a>Construct a FSDATA object by loading the object from a file</h2> <p>The following example creates a new fsdata object by loading the fsdata object from disk.</p> <div class="fragment"><pre class="programlisting"> f1 = fsdata(<span class="string">'f1.mat'</span>) f1 = fsdata(<span class="string">'f1.xml'</span>) </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="data_vector"></a>Construct a FSDATA object from a data vector</h2> <p>creates a frequency-series object with the given y-data. Sample rate of the data is assumed to be 1Hz.</p> <div class="fragment"><pre class="programlisting"> y = randn(1000,1); f1 = fsdata(y) </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="data_freq_vector"></a>Construct a FSDATA object from a data vector and frequency vector</h2> <p>creates a frequency-series object with the given (x,y)-data. The sample rate is then set as 2*x(end).</p> <div class="fragment"><pre class="programlisting"> fs = 10; x = linspace(0, fs/2, 1000); y = randn(1000,1); f1 = fsdata(x,y) </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="data_frequency"></a>Construct a FSDATA object from a data vector and the corresponding frequency</h2> <p>creates a frequency-series object with the given y-data and sample rate. The frequency vector is grown assuming the first y sample corresponds to 0Hz and the last sample corresponds to the Nyquist frequency.</p> <div class="fragment"><pre class="programlisting"> y = randn(1000,1); fs = 100; f1 = fsdata(y,fs) </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="all"></a>Construct a FSDATA object from a data vector, frequency vector and the corresponding frequency</h2> <p>creates a frequency-series object with the given x,y-data and sample rate.</p> <div class="fragment"><pre class="programlisting"> fs = 10; x = linspace(0, fs/2, 1000); y = randn(1000,1); f1 = fsdata(x,y,fs); </pre></div> <!-- ------------------------------------------------ --> <!-- --------------- END CONTENT FILE --------------- --> <!-- ------------------------------------------------ -->