view m-toolbox/html_help/help/ug/constructor_examples_ao_content.html @ 10:75007001cbfe database-connection-manager

Check for binary only objects
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

<!-- $Id: constructor_examples_ao_content.html,v 1.7 2011/01/24 18:02:53 ingo Exp $ -->

<!-- -------------------------------------------------- -->
<!-- --------------- BEGIN CONTENT FILE --------------- -->
<!-- -------------------------------------------------- -->


<!-- --------------- Link box: begin --------------- -->
<table border="0" summary="Simple list" class="simplelist_nottable_last">
  <tr>
    <td>
      <a href="constructor_examples_ao.html#empty">Copy an AO</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#xml_file">Construct an AO by loading the AO from a file</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#txt_file">Construct an AO from a data file</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#specwin">Construct an AO from spectral window</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#plist">Construct an AO from a parameter set</a>
    </td>
  </tr>
</table>
<!-- --------------- Link box: end --------------- -->


<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="empty"></a>Copy an AO</h2>
<p>The following example creates a copy of an analysis object (blue command).</p>
<div class="fragment"><pre class="programlisting">
>> a1 = ao([1:12]);
<span class="blue">>> a2 = ao(1)</span>
----------- ao: a -----------

name:  none
creator:  created by hewitson@bobmac.aei.uni-hannover.de[130.75.117.65] on MACI/7.6
description:
data:  None
hist:  ao / ao / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
mfilename:
mdlfilename:
-----------------------------
</pre></div>
<br></br>
<p>REMARK: The following command copies only the handle of an object and doesn't create a copy of the object (as above). This means that everything that happens to the copy or original happens to the other object.</p>
<div class="fragment"><pre class="programlisting">
>> a1 = ao()
----------- ao 01: a1 -----------
       name:  none
description:
       data:  None
       hist:  ao / ao / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
  mfilename:
mdlfilename:
---------------------------------
>> a2 = a1;
>> a2.setName(<span class="string">'my new name'</span>)
----------- ao 01: my new name -----------
       name:  <span class="string">my new name</span>
description:
       data:  None
       hist:  ltpda_uoh / setName / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
  mfilename:
mdlfilename:
------------------------------------------
</pre></div>
<br></br>
<p>If we display a1 again then we see that the property 'name' was changed although we only have changed a2.</p>
<div class="fragment"><pre class="programlisting">
>> a1
----------- ao 01: my new name -----------
       name:  <span class="string">my new name</span>
description:
       data:  None
       hist:  ltpda_uoh / setName / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
  mfilename:
mdlfilename:
------------------------------------------
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="xml_file"></a>Construct an AO by loading the AO from a file</h2>
<p>The following example creates a new analysis object by loading the analysis object from disk.</p>
<div class="fragment"><pre class="programlisting">
a = ao(<span class="string">'a1.mat'</span>)
a = ao(<span class="string">'a1.xml'</span>)
</pre></div>
<p>or in a <tt>PLIST</tt></p>
<div class="fragment"><pre class="programlisting">
pl = plist(<span class="string">'filename'</span>, <span class="string">'a1.xml'</span>)
a  = ao(pl)
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="txt_file"></a>Construct an AO from a data file</h2>
<p>The following example creates a new analysis object by loading the data in 'file.txt'. The ascii file is assumed to be an equally sampled two-column file of time and amplitude.</p>
<div class="fragment"><pre class="programlisting">
a = ao(<span class="string">'file.txt'</span>) or
a = ao(<span class="string">'file.dat'</span>)
</pre></div>
<br></br>
<p>The following example creates a new analysis object by loading the data in 'file'. The parameter list determines how the analysis object is created. The valid key/value pairs of the parameter list are:
</p>

<p>
  <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
    <colgroup>
      <col width="25%"/>
      <col width="75%"/>
    </colgroup>
    <thead>
      <tr valign="top">
        <th class="subcategorylist">Key</th>
        <th class="subcategorylist">Description</th>
      </tr>
    </thead>
    <tbody>
      <tr valign="top">
        <td>
          <p>'type'</p>
        </td>
        <td>
          <p>'tsdata','fsdata','xydata' [default: 'tsdata']</p>
        </td>
      </tr>
      <tr valign="top">
        <td>
          <p>'fs'</p>
        </td>
        <td>
          <p>If this value is set, the x-axes is computed by the fs value. [default: empty]</p>
        </td>
      </tr>
      <tr valign="top">
        <td>
          <p>'columns'</p>
        </td>
        <td>
          <p>
            [1 2 1 4] Each pair represents the <tt>x</tt>- and <tt>y</tt>-axes (each column pair creates an analysis object).<br></br>
            If the value 'fs' is set, then each column is converted to the <tt>y</tt> vector of a time-series AO. [default: [1 2] ]
          </p>
        </td>
      </tr>
      <tr valign="top">
        <td>
          <p>'comment_char'</p>
        </td>
        <td>
          <p>The comment character in the file [default: '%']</p>
        </td>
      </tr>
      <tr valign="top">
        <td>
          <p>'description'</p>
        </td>
        <td>
          <p>To set the description in the analysis object</p>
        </td>
      </tr>
      <tr valign="top">
        <td>
          <p>'...'</p>
        </td>
        <td>
          <p>Every property of the data object e.g. 'name'</p>
        </td>
      </tr>
    </tbody>
  </table>
</p>

<div class="fragment"><pre class="programlisting">
<span class="comment">% Each pair in col represents the x- and y-axes.</span>
<span class="comment">% 'fs' is not used !!!</span>

pl = plist(<span class="string">'filename'</span>, <span class="string">'data.dat'</span>,  ...
<span class="string">'description'</span>, <span class="string">'my ao description'</span>,    ...
<span class="string">'type'</span>, <span class="string">'xydata'</span>,   ...
<span class="string">'xunits'</span>, <span class="string">'s'</span>, ...
<span class="string">'yunits'</span>, {<span class="string">'Volt'</span>, <span class="string">'Hz'</span>}, ...
<span class="string">'columns'</span>, [1 2 1 3],    ...
<span class="string">'comment_char'</span>, <span class="string">'//'</span>);

out = ao(<span class="string">'data.dat'</span>, pl);
out = ao(pl);
</pre></div>
<br></br>
<p>Another example where the time vector is specified by the sample rate (<tt>fs</tt>) and
each column of data is converted in to a single AO.</p>
<div class="fragment"><pre class="programlisting">
<span class="comment">% 'fs is used. As such, each column in <tt>col</tt> creates its own AO with the specified sample rate.</span>

pl = plist(<span class="string">'filename'</span>, <span class="string">'data.dat'</span>,...
<span class="string">'type'</span>, <span class="string">'tsdata'</span>,     ...
<span class="string">'fs'</span>, 100,     ...
<span class="string">'t0'</span>, {<span class="string">'14:00:00'</span>, <span class="string">'14:00:20'</span>, <span class="string">'14:00:30'</span>},   ...
<span class="string">'columns'</span>, [1 2 3]);
out = ao(<span class="string">'data.dat'</span>, pl);
out = ao(pl);
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="specwin"></a>Construct an AO from a spectral window</h2>
<p>The following example creates a cdata type AO containing the window values.</p>
<div class="fragment"><pre class="programlisting">
win = specwin(<span class="string">'Kaiser'</span>, 100, 10);
>> a = ao(win)
----------- ao 01: Kaiser -----------
       name:  Kaiser
description:
       data: 0.7145 0.7249 0.7351 0.7452 0.7551 0.7649 0.7746 0.7840 0.7934 0.8025 ...
             -------- cdata 01 ------------
                  y:  [1x100], double
             yunits:  []
             ------------------------------
       hist:  ao / ao / $Id: fromSpecWin.m,v 1.11 2008/12/05 10:47:14 hewitson Exp -->
  mfilename:
mdlfilename:
-------------------------------------
</pre></div>

<!-- --------------- NEXT EXAMPLE --------------- -->

<hr>
<h2 class="title"><a name="plist"></a>Construct an AO from a parameter sets</h2>
<p>Constructs an analysis object from the description given in the parameter list (in order of priority).</p>

<!-- --------------- Link box: begin --------------- -->
<table border="0" summary="Simple list" class="simplelist_nottable_last">
  <tr>
    <td>
      <a href="constructor_examples_ao.html#file">From ASCII File</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#complexfile">From complex ASCII File</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#vals">From Values</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#fcn">From Function</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#xyfcn">From XY Function</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#tsfcn">From Time-series Function</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#fsfcn">From Frequency-series Function</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#win">From Window</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#waveform">From Waveform</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#hostname">From Repository</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#polyval">From Polynomial</a>
    </td>
  </tr>
  <tr>
  <tr>
    <td>
      <a href="constructor_examples_ao.html#pzmodel">From Pzmodel</a>
    </td>
  </tr>
</table>
<!-- --------------- Link box: end --------------- -->


<!-- --------------- 'file' --------------- -->

<hr>
<h3 class="title"><a name="file">From ASCII File</h3>
<p>The following example creates an analysis object from a datafile. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From ASCII File').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

<span class="comment">% Construct two analysis-objects with time-series data from</span>
<span class="comment">% time data in the first column and the data in column 2 and 3 of the file.</span>
a = ao(plist(<span class="string">'filename'</span>, <span class="string">'data.txt'</span>, <span class="string">'columns'</span>, [1 2 1 3], <span class="string">'type'</span>, <span class="string">'tsdata'</span>));

<span class="comment">% Construct two analysis-objects with the given frequency and the data in column 1 and 2.</span>
a = ao(plist(<span class="string">'filename'</span>, <span class="string">'data.txt'</span>, <span class="string">'fs'</span>, 12.1, <span class="string">'columns'</span>, [1 2], <span class="string">'type'</span>, <span class="string">'tsdata'</span>));

<span class="comment">% Define a comment character for skip comments.</span>
a = ao(plist(<span class="string">'filename'</span>, <span class="string">'data.txt'</span>, <span class="string">'comment_char'</span>, <span class="string">'#'</span>, <span class="string">'columns'</span>, [1 2 1 3], <span class="string">'type'</span>, <span class="string">'tsdata'</span>));
</pre></div>

<!-- --------------- 'complexfile' --------------- -->

<hr>
<h3 class="title"><a name="complexfile">From complex ASCII File</h3>
<p>The following example creates an analysis object from a complex datafile. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From complex ASCII File').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'filename'</span>, <span class="string">'data.txt'</span>, <span class="string">'complex_type'</span>, <span class="string">'real/imag'</span>, <span class="string">'type'</span>, <span class="string">'tsdata'</span>));
a = ao(plist(<span class="string">'filename'</span>, <span class="string">'data.txt'</span>, <span class="string">'complex_type'</span>, <span class="string">'real/imag'</span>, <span class="string">'type'</span>, <span class="string">'fsdata'</span>, <span class="string">'columns'</span>, [1,2,4]));
</pre></div>

<!-- --------------- 'vals' --------------- -->

<hr>
<h3 class="title"><a name="vals"></a>From Values</h3>
<p>The following example creates an AO from a set of values. The data type depends on the parameters.
 If you use the parameter key <b>'vals'</b> then you will get an analysis object with cdata.
 Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Values').tohtml])">here</a> for information about the <b>value</b> parameter set or
 <a href="matlab:web(['text://' ao.getInfo('ao', 'From XY Values').tohtml])">here</a> to get more information about the <b>xy-value</b> parameter set.
</p>
<div class="fragment"><pre class="programlisting">

<span class="comment">% cdata</span>
a = ao(plist(<span class="string">'vals'</span>, [1 2 3], <span class="string">'N'</span>, 10));

<span class="comment">% xydata</span>
a = ao(plist(<span class="string">'xvals'</span>, [1 2 3], <span class="string">'yvals'</span>, [10 20 30]));

<span class="comment">% tsdata</span>
a = ao(plist(<span class="string">'xvals'</span>, [1 2 3], <span class="string">'yvals'</span>, [10 20 30], <span class="string">'type'</span>, <span class="string">'tsdata'</span>));
a = ao(plist(<span class="string">'fs'</span>, 1, <span class="string">'yvals'</span>, [10 20 30]));

<span class="comment">% fsdata</span>
a = ao(plist(<span class="string">'xvals'</span>, [1 2 3], <span class="string">'yvals'</span>, [10 20 30], <span class="string">'type'</span>, <span class="string">'fsdata'</span>));
a = ao(plist(<span class="string">'fs'</span>, 1, <span class="string">'yvals'</span>, [10 20 30], <span class="string">'type'</span>, <span class="string">'fsdata'</span>));
a = ao(plist(<span class="string">'fs'</span>, 1, <span class="string">'yvals'</span>, [10 20 30], <span class="string">'type'</span>, <span class="string">'fsdata'</span>, <span class="string">'xunits'</span>, <span class="string">'mHz'</span>, <span class="string">'yunits'</span>, <span class="string">'V'</span>));
</pre></div>

<!-- --------------- 'fcn' --------------- -->

<hr>
<h3 class="title"><a name="fcn">From Function</h3>
<p>The following example creates an AO from the description of any valid MATLAB function.
 The data object is of type <tt>cdata</tt>. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Function').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'fcn'</span>, <span class="string">'randn(100,1)'</span>));
</pre></div>
<p>You can pass additional parameters to the fcn as extra parameters in the parameter list:</p>
<div class="fragment"><pre class="programlisting">

a  = ao(plist(<span class="string">'fcn'</span>, <span class="string">'a*b'</span>, <span class="string">'a'</span>, 2, <span class="string">'b'</span>, 1:20));
</pre></div>

<!-- --------------- 'xyfcn' --------------- -->

<hr>
<h3 class="title"><a name="xyfcn"></a>From XY Function</h3>
<p>Construct an AO from a function f(x) string. The data object is from type <tt>xydata</tt>. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From XY Function').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'xyfcn'</span>, <span class="string">'cos(2*pi*x) + randn(size(x))'</span>, <span class="string">'x'</span>, [1:1e5]));
a = ao(plist(<span class="string">'xyfcn'</span>, <span class="string">'log(x)'</span>, <span class="string">'x'</span>, [1:50,52:2:100,110:10:1000]));
</pre></div>

<!-- --------------- 'tsfcn' --------------- -->

<hr>
<h3 class="title"><a name="tsfcn"></a>From Time-series Function</h3>
<p>Construct an AO from a function of time, <tt>t</tt> f(t). The data object is from type <tt>tsdata</tt> (time-series data). Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Time-series Function').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'fs'</span>,    10, ...
             <span class="string">'nsecs'</span>, 10, ...
             <span class="string">'tsfcn'</span>, <span class="string">'sin(2*pi*1.4*t) + 0.1*randn(size(t))'</span>, ...
             <span class="string">'t0'</span>,    <span class="string">'1980-12-01 12:43:12'</span>));
a = ao(plist(<span class="string">'tsfcn'</span>, <span class="string">'cos(pi*t) + randn(size(t))'</span>, ...
             <span class="string">'fs'</span>,    1, ...
             <span class="string">'nsecs'</span>, 100));
a = ao(plist(<span class="string">'fs'</span>,    10, ...
             <span class="string">'nsecs'</span>, 10, ...
             <span class="string">'tsfcn'</span>, <span class="string">'sin(2*pi*1.4*t)+0.1*randn(size(t))'</span>, ...
             <span class="string">'t0'</span>,    time(<span class="string">'1980-12-01 12:43:12'</span>)));
</pre></div>

<!-- --------------- 'fsfcn' --------------- -->

<hr>
<h3 class="title"><a name="fsfcn"></a>From Frequency-series Function</h3>
<p>Construct an AO from a function of frequency, f f(f). The data object is from type <tt>fsdata</tt> (frequency-series). Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Frequency-series Function').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'fsfcn'</span>, <span class="string">'f'</span>, <span class="string">'f1'</span>, 1e-5, <span class="string">'f2'</span>, 1, <span class="string">'yunits'</span>, <span class="string">'V'</span>));
a = ao(plist(<span class="string">'fsfcn'</span>, <span class="string">'f'</span>, <span class="string">'f'</span>, [0.01:0.01:1]));
a = ao(plist(<span class="string">'fsfcn'</span>, <span class="string">'1./f.^2'</span>, <span class="string">'scale'</span>, <span class="string">'lin'</span>, <span class="string">'nf'</span>, 100));
</pre></div>

<!-- --------------- 'win' --------------- -->

<hr>
<h3 class="title"><a name="win"></a>From Window</h3>
<p>Construct an AO from a spectral window object.<br />
Click <a href="specwin_description.html">here</a> for a list of supported window functions and <a href="matlab:web(['text://' ao.getInfo('ao', 'From Window').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'win'</span>, specwin(<span class="string">'Hanning'</span>, 100)))
a = ao(plist(<span class="string">'win'</span>, specwin(<span class="string">'Kaiser'</span>, 10, 150)))
</pre></div>

<!-- --------------- 'waveform' --------------- -->

%     >>
%     >> ao(plist('waveform','noise','type','normal','sigma',2,'nsecs',1000,'fs',1));
%     >>
%     >>
%     >>
%     >>

<hr>
<h3 class="title"><a name="waveform"></a>From Waveform</h3>
<p>Construct an AO from a waveform with the following waveform types. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Waveform').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

<span class="comment">% Construct random noise</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'noise'</span>, <span class="string">'type'</span>, <span class="string">'Normal'</span>, <span class="string">'sigma'</span>, 2, <span class="string">'nsecs'</span>, 1000, <span class="string">'fs'</span>, 1));

<span class="comment">% Construct uniform random noise</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'noise'</span>, <span class="string">'type'</span>, <span class="string">'Uniform'</span>, <span class="string">'nsecs'</span>, 1000, <span class="string">'fs'</span>, 1));

<span class="comment">% Construct a sine wave</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'sine wave'</span>, <span class="string">'A'</span>, 3, <span class="string">'f'</span>, 1, <span class="string">'phi'</span>, pi/2, <span class="string">'toff'</span>, 0.1, <span class="string">'nsecs'</span>, 10, <span class="string">'fs'</span>, 100));

<span class="comment">% Construct a chirp waveform</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'chirp'</span>, <span class="string">'f0'</span>, 0.1, <span class="string">'f1'</span>, 1, <span class="string">'t1'</span>, 1, <span class="string">'nsecs'</span>, 5, <span class="string">'fs'</span>, 1000));

<span class="comment">% Construct a Gaussian pulse waveform</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'gaussian pulse'</span>, <span class="string">'f0'</span>, 1, <span class="string">'bw'</span>, 0.2, <span class="string">'nsecs'</span>, 20, <span class="string">'fs'</span>, 10));

<span class="comment">% Construct a Square wave</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'square wave'</span>, <span class="string">'f'</span>, 2, <span class="string">'duty'</span>, 40, <span class="string">'nsecs'</span>, 10, <span class="string">'fs'</span>, 100));

<span class="comment">% Construct a Sawtooth wave</span>
a = ao(plist(<span class="string">'waveform'</span>, <span class="string">'sawtooth'</span>, <span class="string">'f'</span>, 1.23, <span class="string">'width'</span>, 1, <span class="string">'nsecs'</span>, 10/1.23, <span class="string">'fs'</span>, 50));
</pre></div>


<!-- --------------- 'hostname' --------------- -->

<hr>
<h3 class="title"><a name="hostname"></a>From Repository</h3>
<p>Construct an AO by retrieving it from a LTPDA repository. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Repository').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

<span class="comment">% Retrieves the objects with the object ID 1..10</span>
a = ao(plist(<span class="string">'hostname'</span>, <span class="string">'123.123.123.123'</span>, <span class="string">'database'</span>, <span class="string">'ltpda_test'</span>, <span class="string">'ID'</span>, [1:10], <span class="string">'binary'</span>, <span class="string">'yes'</span>));
</pre></div>


<!-- --------------- 'polyval' --------------- -->

<hr>
<h3 class="title"><a name="polyval"></a>From Polynomial</h3>
<p>Construct an AO from a set of polynomial coefficients. The relevant parameters are:</p>
<p>
  <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
    <colgroup>
      <col width="25%"/>
      <col width="75%"/>
    </colgroup>
    <thead>
      <tr valign="top">
        <th class="subcategorylist">Key</th>
        <th class="subcategorylist">Description</th>
      </tr>
    </thead>
    <tbody>
      <tr valign="top">
        <td>
          <p>'polyval'</p>
        </td>
        <td>
          <p>A set of polynomial coefficients. [default: [] ]</p>
        </td>
      </tr>
    </tbody>
  </table>
</p>
<p>Additional parameters:</p>
<p>
  <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
    <colgroup>
      <col width="25%"/>
      <col width="75%"/>
    </colgroup>
    <thead>
      <tr valign="top">
        <th class="subcategorylist">Key</th>
        <th class="subcategorylist">Description</th>
      </tr>
    </thead>
    <tbody>
      <tr valign="top">
        <td>
          <p>'nsecs'</p>
        </td>
        <td>
          <p>Number of seconds [default: 10]</p>
        </td>
      </tr>
      <tr valign="top">
        <td>
          <p>'fs'</p>
        </td>
        <td>
          <p>Sample rate[default: 10 s]</p>
        </td>
      </tr>
    </tbody>
  </table>
</p>
<p>or</p>
<p>
  <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
    <colgroup>
      <col width="25%"/>
      <col width="75%"/>
    </colgroup>
    <thead>
      <tr valign="top">
        <th class="subcategorylist">Key</th>
        <th class="subcategorylist">Description</th>
      </tr>
    </thead>
    <tbody>
      <tr valign="top">
        <td>
          <p>'t'</p>
        </td>
        <td>
          <p>vector of time vertices. The value can also be an AO, in which case the X vector is used. [default: [] ]</p>
        </td>
      </tr>
    </tbody>
  </table>
</p>
Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Polynomial').tohtml])">here</a> to get more information about the parameters.
<div class="fragment"><pre class="programlisting">

a = ao(plist(<span class="string">'polyval'</span>, [1 2 3], <span class="string">'Nsecs'</span>, 10, <span class="string">'fs'</span>, 10));
</pre></div>


<!-- --------------- 'pzmodel' --------------- -->

<hr>
<h3 class="title"><a name="pzmodel"></a>From Pzmodel</h3>
<p>Generates an AO with a timeseries with a prescribed spectrum. Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Pzmodel').tohtml])">here</a> to get more information about the parameters.</p>
<div class="fragment"><pre class="programlisting">

p   = [pz(1,2) pz(10)]
z   = [pz(4)]
pzm = pzmodel(1, p, z)

fs    = 10
nsecs = 100
a = ao(plist(<span class="string">'pzmodel'</span>, pzm, <span class="string">'Nsecs'</span>, nsecs, <span class="string">'Fs'</span>, fs));
</pre></div>


<!-- ------------------------------------------------ -->
<!-- --------------- END CONTENT FILE --------------- -->
<!-- ------------------------------------------------ -->