0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 1 <!-- $Id: constructor_examples_ao_content.html,v 1.7 2011/01/24 18:02:53 ingo Exp $ -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 2
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 3 <!-- -------------------------------------------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 4 <!-- --------------- BEGIN CONTENT FILE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 5 <!-- -------------------------------------------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 6
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 7
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 8 <!-- --------------- Link box: begin --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 9 <table border="0" summary="Simple list" class="simplelist_nottable_last">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 10 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 11 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 12 <a href="constructor_examples_ao.html#empty">Copy an AO</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 13 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 14 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 15 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 16 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 17 <a href="constructor_examples_ao.html#xml_file">Construct an AO by loading the AO from a file</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 18 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 19 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 20 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 21 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 22 <a href="constructor_examples_ao.html#txt_file">Construct an AO from a data file</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 23 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 24 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 25 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 26 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 27 <a href="constructor_examples_ao.html#specwin">Construct an AO from spectral window</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 28 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 29 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 30 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 31 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 32 <a href="constructor_examples_ao.html#plist">Construct an AO from a parameter set</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 33 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 34 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 35 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 36 <!-- --------------- Link box: end --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 37
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 38
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 39 <!-- --------------- NEXT EXAMPLE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 40
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 41 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 42 <h2 class="title"><a name="empty"></a>Copy an AO</h2>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 43 <p>The following example creates a copy of an analysis object (blue command).</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 44 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 45 >> a1 = ao([1:12]);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 46 <span class="blue">>> a2 = ao(1)</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 47 ----------- ao: a -----------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 48
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 49 name: none
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 50 creator: created by hewitson@bobmac.aei.uni-hannover.de[130.75.117.65] on MACI/7.6
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 51 description:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 52 data: None
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 53 hist: ao / ao / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 54 mfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 55 mdlfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 56 -----------------------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 57 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 58 <br></br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 59 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 60 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 61 >> a1 = ao()
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 62 ----------- ao 01: a1 -----------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 63 name: none
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 64 description:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 65 data: None
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 66 hist: ao / ao / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 67 mfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 68 mdlfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 69 ---------------------------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 70 >> a2 = a1;
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 71 >> a2.setName(<span class="string">'my new name'</span>)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 72 ----------- ao 01: my new name -----------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 73 name: <span class="string">my new name</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 74 description:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 75 data: None
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 76 hist: ltpda_uoh / setName / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 77 mfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 78 mdlfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 79 ------------------------------------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 80 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 81 <br></br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 82 <p>If we display a1 again then we see that the property 'name' was changed although we only have changed a2.</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 83 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 84 >> a1
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 85 ----------- ao 01: my new name -----------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 86 name: <span class="string">my new name</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 87 description:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 88 data: None
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 89 hist: ltpda_uoh / setName / $Id: ao.m,v 1.220 2009/02/25 18:51:24 ingo Exp
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 90 mfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 91 mdlfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 92 ------------------------------------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 93 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 94
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 95 <!-- --------------- NEXT EXAMPLE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 96
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 97 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 98 <h2 class="title"><a name="xml_file"></a>Construct an AO by loading the AO from a file</h2>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 99 <p>The following example creates a new analysis object by loading the analysis object from disk.</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 100 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 101 a = ao(<span class="string">'a1.mat'</span>)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 102 a = ao(<span class="string">'a1.xml'</span>)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 103 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 104 <p>or in a <tt>PLIST</tt></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 105 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 106 pl = plist(<span class="string">'filename'</span>, <span class="string">'a1.xml'</span>)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 107 a = ao(pl)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 108 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 109
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 110 <!-- --------------- NEXT EXAMPLE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 111
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 112 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 113 <h2 class="title"><a name="txt_file"></a>Construct an AO from a data file</h2>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 114 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 115 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 116 a = ao(<span class="string">'file.txt'</span>) or
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 117 a = ao(<span class="string">'file.dat'</span>)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 118 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 119 <br></br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 120 <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:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 121 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 122
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 123 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 124 <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 125 <colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 126 <col width="25%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 127 <col width="75%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 128 </colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 129 <thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 130 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 131 <th class="subcategorylist">Key</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 132 <th class="subcategorylist">Description</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 133 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 134 </thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 135 <tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 136 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 137 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 138 <p>'type'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 139 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 140 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 141 <p>'tsdata','fsdata','xydata' [default: 'tsdata']</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 142 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 143 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 144 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 145 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 146 <p>'fs'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 147 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 148 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 149 <p>If this value is set, the x-axes is computed by the fs value. [default: empty]</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 150 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 151 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 152 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 153 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 154 <p>'columns'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 155 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 156 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 157 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 158 [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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 159 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] ]
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 160 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 161 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 162 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 163 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 164 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 165 <p>'comment_char'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 166 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 167 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 168 <p>The comment character in the file [default: '%']</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 169 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 170 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 171 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 172 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 173 <p>'description'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 174 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 175 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 176 <p>To set the description in the analysis object</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 177 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 178 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 179 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 180 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 181 <p>'...'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 182 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 183 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 184 <p>Every property of the data object e.g. 'name'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 185 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 186 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 187 </tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 188 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 189 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 190
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 191 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 192 <span class="comment">% Each pair in col represents the x- and y-axes.</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 193 <span class="comment">% 'fs' is not used !!!</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 194
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 195 pl = plist(<span class="string">'filename'</span>, <span class="string">'data.dat'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 196 <span class="string">'description'</span>, <span class="string">'my ao description'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 197 <span class="string">'type'</span>, <span class="string">'xydata'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 198 <span class="string">'xunits'</span>, <span class="string">'s'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 199 <span class="string">'yunits'</span>, {<span class="string">'Volt'</span>, <span class="string">'Hz'</span>}, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 200 <span class="string">'columns'</span>, [1 2 1 3], ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 201 <span class="string">'comment_char'</span>, <span class="string">'//'</span>);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 202
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 203 out = ao(<span class="string">'data.dat'</span>, pl);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 204 out = ao(pl);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 205 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 206 <br></br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 207 <p>Another example where the time vector is specified by the sample rate (<tt>fs</tt>) and
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 208 each column of data is converted in to a single AO.</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 209 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 210 <span class="comment">% 'fs is used. As such, each column in <tt>col</tt> creates its own AO with the specified sample rate.</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 211
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 212 pl = plist(<span class="string">'filename'</span>, <span class="string">'data.dat'</span>,...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 213 <span class="string">'type'</span>, <span class="string">'tsdata'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 214 <span class="string">'fs'</span>, 100, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 215 <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>}, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 216 <span class="string">'columns'</span>, [1 2 3]);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 217 out = ao(<span class="string">'data.dat'</span>, pl);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 218 out = ao(pl);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 219 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 220
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 221 <!-- --------------- NEXT EXAMPLE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 222
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 223 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 224 <h2 class="title"><a name="specwin"></a>Construct an AO from a spectral window</h2>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 225 <p>The following example creates a cdata type AO containing the window values.</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 226 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 227 win = specwin(<span class="string">'Kaiser'</span>, 100, 10);
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 228 >> a = ao(win)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 229 ----------- ao 01: Kaiser -----------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 230 name: Kaiser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 231 description:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 232 data: 0.7145 0.7249 0.7351 0.7452 0.7551 0.7649 0.7746 0.7840 0.7934 0.8025 ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 233 -------- cdata 01 ------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 234 y: [1x100], double
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 235 yunits: []
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 236 ------------------------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 237 hist: ao / ao / $Id: fromSpecWin.m,v 1.11 2008/12/05 10:47:14 hewitson Exp -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 238 mfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 239 mdlfilename:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 240 -------------------------------------
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 241 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 242
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 243 <!-- --------------- NEXT EXAMPLE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 244
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 245 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 246 <h2 class="title"><a name="plist"></a>Construct an AO from a parameter sets</h2>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 247 <p>Constructs an analysis object from the description given in the parameter list (in order of priority).</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 248
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 249 <!-- --------------- Link box: begin --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 250 <table border="0" summary="Simple list" class="simplelist_nottable_last">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 251 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 252 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 253 <a href="constructor_examples_ao.html#file">From ASCII File</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 254 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 255 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 256 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 257 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 258 <a href="constructor_examples_ao.html#complexfile">From complex ASCII File</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 259 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 260 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 261 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 262 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 263 <a href="constructor_examples_ao.html#vals">From Values</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 264 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 265 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 266 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 267 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 268 <a href="constructor_examples_ao.html#fcn">From Function</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 269 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 270 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 271 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 272 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 273 <a href="constructor_examples_ao.html#xyfcn">From XY Function</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 274 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 275 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 276 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 277 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 278 <a href="constructor_examples_ao.html#tsfcn">From Time-series Function</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 279 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 280 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 281 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 282 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 283 <a href="constructor_examples_ao.html#fsfcn">From Frequency-series Function</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 284 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 285 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 286 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 287 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 288 <a href="constructor_examples_ao.html#win">From Window</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 289 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 290 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 291 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 292 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 293 <a href="constructor_examples_ao.html#waveform">From Waveform</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 294 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 295 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 296 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 297 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 298 <a href="constructor_examples_ao.html#hostname">From Repository</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 299 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 300 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 301 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 302 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 303 <a href="constructor_examples_ao.html#polyval">From Polynomial</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 304 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 305 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 306 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 307 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 308 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 309 <a href="constructor_examples_ao.html#pzmodel">From Pzmodel</a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 310 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 311 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 312 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 313 <!-- --------------- Link box: end --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 314
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 315
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 316 <!-- --------------- 'file' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 317
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 318 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 319 <h3 class="title"><a name="file">From ASCII File</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 320 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 321 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 322
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 323 <span class="comment">% Construct two analysis-objects with time-series data from</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 324 <span class="comment">% time data in the first column and the data in column 2 and 3 of the file.</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 325 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 326
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 327 <span class="comment">% Construct two analysis-objects with the given frequency and the data in column 1 and 2.</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 328 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 329
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 330 <span class="comment">% Define a comment character for skip comments.</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 331 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 332 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 333
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 334 <!-- --------------- 'complexfile' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 335
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 336 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 337 <h3 class="title"><a name="complexfile">From complex ASCII File</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 338 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 339 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 340
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 341 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 342 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]));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 343 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 344
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 345 <!-- --------------- 'vals' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 346
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 347 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 348 <h3 class="title"><a name="vals"></a>From Values</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 349 <p>The following example creates an AO from a set of values. The data type depends on the parameters.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 350 If you use the parameter key <b>'vals'</b> then you will get an analysis object with cdata.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 351 Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Values').tohtml])">here</a> for information about the <b>value</b> parameter set or
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 352 <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.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 353 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 354 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 355
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 356 <span class="comment">% cdata</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 357 a = ao(plist(<span class="string">'vals'</span>, [1 2 3], <span class="string">'N'</span>, 10));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 358
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 359 <span class="comment">% xydata</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 360 a = ao(plist(<span class="string">'xvals'</span>, [1 2 3], <span class="string">'yvals'</span>, [10 20 30]));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 361
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 362 <span class="comment">% tsdata</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 363 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 364 a = ao(plist(<span class="string">'fs'</span>, 1, <span class="string">'yvals'</span>, [10 20 30]));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 365
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 366 <span class="comment">% fsdata</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 367 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 368 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 369 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 370 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 371
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 372 <!-- --------------- 'fcn' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 373
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 374 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 375 <h3 class="title"><a name="fcn">From Function</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 376 <p>The following example creates an AO from the description of any valid MATLAB function.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 377 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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 378 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 379
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 380 a = ao(plist(<span class="string">'fcn'</span>, <span class="string">'randn(100,1)'</span>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 381 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 382 <p>You can pass additional parameters to the fcn as extra parameters in the parameter list:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 383 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 384
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 385 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 386 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 387
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 388 <!-- --------------- 'xyfcn' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 389
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 390 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 391 <h3 class="title"><a name="xyfcn"></a>From XY Function</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 392 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 393 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 394
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 395 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]));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 396 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]));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 397 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 398
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 399 <!-- --------------- 'tsfcn' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 400
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 401 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 402 <h3 class="title"><a name="tsfcn"></a>From Time-series Function</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 403 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 404 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 405
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 406 a = ao(plist(<span class="string">'fs'</span>, 10, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 407 <span class="string">'nsecs'</span>, 10, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 408 <span class="string">'tsfcn'</span>, <span class="string">'sin(2*pi*1.4*t) + 0.1*randn(size(t))'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 409 <span class="string">'t0'</span>, <span class="string">'1980-12-01 12:43:12'</span>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 410 a = ao(plist(<span class="string">'tsfcn'</span>, <span class="string">'cos(pi*t) + randn(size(t))'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 411 <span class="string">'fs'</span>, 1, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 412 <span class="string">'nsecs'</span>, 100));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 413 a = ao(plist(<span class="string">'fs'</span>, 10, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 414 <span class="string">'nsecs'</span>, 10, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 415 <span class="string">'tsfcn'</span>, <span class="string">'sin(2*pi*1.4*t)+0.1*randn(size(t))'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 416 <span class="string">'t0'</span>, time(<span class="string">'1980-12-01 12:43:12'</span>)));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 417 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 418
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 419 <!-- --------------- 'fsfcn' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 420
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 421 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 422 <h3 class="title"><a name="fsfcn"></a>From Frequency-series Function</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 423 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 424 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 425
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 426 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 427 a = ao(plist(<span class="string">'fsfcn'</span>, <span class="string">'f'</span>, <span class="string">'f'</span>, [0.01:0.01:1]));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 428 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 429 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 430
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 431 <!-- --------------- 'win' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 432
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 433 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 434 <h3 class="title"><a name="win"></a>From Window</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 435 <p>Construct an AO from a spectral window object.<br />
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 436 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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 437 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 438
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 439 a = ao(plist(<span class="string">'win'</span>, specwin(<span class="string">'Hanning'</span>, 100)))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 440 a = ao(plist(<span class="string">'win'</span>, specwin(<span class="string">'Kaiser'</span>, 10, 150)))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 441 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 442
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 443 <!-- --------------- 'waveform' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 444
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 445 % >>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 446 % >> ao(plist('waveform','noise','type','normal','sigma',2,'nsecs',1000,'fs',1));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 447 % >>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 448 % >>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 449 % >>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 450 % >>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 451
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 452 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 453 <h3 class="title"><a name="waveform"></a>From Waveform</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 454 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 455 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 456
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 457 <span class="comment">% Construct random noise</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 458 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 459
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 460 <span class="comment">% Construct uniform random noise</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 461 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 462
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 463 <span class="comment">% Construct a sine wave</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 464 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 465
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 466 <span class="comment">% Construct a chirp waveform</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 467 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 468
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 469 <span class="comment">% Construct a Gaussian pulse waveform</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 470 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 471
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 472 <span class="comment">% Construct a Square wave</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 473 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 474
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 475 <span class="comment">% Construct a Sawtooth wave</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 476 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));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 477 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 478
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 479
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 480 <!-- --------------- 'hostname' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 481
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 482 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 483 <h3 class="title"><a name="hostname"></a>From Repository</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 484 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 485 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 486
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 487 <span class="comment">% Retrieves the objects with the object ID 1..10</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 488 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>));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 489 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 490
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 491
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 492 <!-- --------------- 'polyval' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 493
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 494 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 495 <h3 class="title"><a name="polyval"></a>From Polynomial</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 496 <p>Construct an AO from a set of polynomial coefficients. The relevant parameters are:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 497 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 498 <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 499 <colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 500 <col width="25%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 501 <col width="75%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 502 </colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 503 <thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 504 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 505 <th class="subcategorylist">Key</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 506 <th class="subcategorylist">Description</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 507 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 508 </thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 509 <tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 510 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 511 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 512 <p>'polyval'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 513 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 514 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 515 <p>A set of polynomial coefficients. [default: [] ]</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 516 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 517 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 518 </tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 519 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 520 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 521 <p>Additional parameters:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 522 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 523 <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 524 <colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 525 <col width="25%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 526 <col width="75%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 527 </colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 528 <thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 529 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 530 <th class="subcategorylist">Key</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 531 <th class="subcategorylist">Description</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 532 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 533 </thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 534 <tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 535 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 536 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 537 <p>'nsecs'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 538 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 539 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 540 <p>Number of seconds [default: 10]</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 541 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 542 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 543 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 544 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 545 <p>'fs'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 546 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 547 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 548 <p>Sample rate[default: 10 s]</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 549 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 550 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 551 </tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 552 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 553 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 554 <p>or</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 555 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 556 <table cellspacing="0" border="0" cellpadding="2" class="simplelist_nottable_last" width="80%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 557 <colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 558 <col width="25%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 559 <col width="75%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 560 </colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 561 <thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 562 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 563 <th class="subcategorylist">Key</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 564 <th class="subcategorylist">Description</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 565 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 566 </thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 567 <tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 568 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 569 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 570 <p>'t'</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 571 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 572 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 573 <p>vector of time vertices. The value can also be an AO, in which case the X vector is used. [default: [] ]</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 574 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 575 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 576 </tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 577 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 578 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 579 Click <a href="matlab:web(['text://' ao.getInfo('ao', 'From Polynomial').tohtml])">here</a> to get more information about the parameters.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 580 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 581
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 582 a = ao(plist(<span class="string">'polyval'</span>, [1 2 3], <span class="string">'Nsecs'</span>, 10, <span class="string">'fs'</span>, 10));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 583 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 584
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 585
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 586 <!-- --------------- 'pzmodel' --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 587
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 588 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 589 <h3 class="title"><a name="pzmodel"></a>From Pzmodel</h3>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 590 <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>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 591 <div class="fragment"><pre class="programlisting">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 592
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 593 p = [pz(1,2) pz(10)]
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 594 z = [pz(4)]
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 595 pzm = pzmodel(1, p, z)
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 596
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 597 fs = 10
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 598 nsecs = 100
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 599 a = ao(plist(<span class="string">'pzmodel'</span>, pzm, <span class="string">'Nsecs'</span>, nsecs, <span class="string">'Fs'</span>, fs));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 600 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 601
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 602
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 603 <!-- ------------------------------------------------ -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 604 <!-- --------------- END CONTENT FILE --------------- -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 605 <!-- ------------------------------------------------ -->