Mercurial > hg > ltpda
comparison m-toolbox/html_help/help/ug/constructor_examples_zero_content.html @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 <!-- $Id: constructor_examples_zero_content.html,v 1.1 2008/03/30 20:40:04 ingo Exp $ --> | |
2 | |
3 <!-- -------------------------------------------------- --> | |
4 <!-- --------------- BEGIN CONTENT FILE --------------- --> | |
5 <!-- -------------------------------------------------- --> | |
6 | |
7 <!-- --------------- Link box: begin --------------- --> | |
8 <table border="0" summary="Simple list" class="simplelist_nottable_last"> | |
9 <tr> | |
10 <td> | |
11 <a href="constructor_examples_zero.html#empty">Construct empty ZERO object</a> | |
12 </td> | |
13 </tr> | |
14 <tr> | |
15 <td> | |
16 <a href="constructor_examples_zero.html#xml_file">Construct a ZERO object by loading the object from a file</a> | |
17 </td> | |
18 </tr> | |
19 <tr> | |
20 <td> | |
21 <a href="constructor_examples_zero.html#real">Construct a ZERO object with a real zero</a> | |
22 </td> | |
23 </tr> | |
24 <tr> | |
25 <td> | |
26 <a href="constructor_examples_zero.html#complex">Construct a ZERO object with a complex zero</a> | |
27 </td> | |
28 </tr> | |
29 </table> | |
30 | |
31 <p>Poles are specified by in the LTPDA Toolbox by a frequency, f, and (optionally) a quality factor, Q.</p> | |
32 <!-- --------------- Link box: end --------------- --> | |
33 | |
34 <!-- --------------- NEXT EXAMPLE --------------- --> | |
35 | |
36 <hr> | |
37 <h2 class="title"><a name="empty"></a>Construct empty ZERO object</h2> | |
38 <p>The following example creates an empty zero object</p> | |
39 <div class="fragment"><pre class="programlisting"> | |
40 p = zero() | |
41 ---- zero 1 ---- | |
42 None: NaN Hz | |
43 ---------------- | |
44 </pre></div> | |
45 | |
46 <!-- --------------- NEXT EXAMPLE --------------- --> | |
47 | |
48 <hr> | |
49 <h2 class="title"><a name="xml_file"></a>Construct a ZERO object by loading the object from a file</h2> | |
50 <p>The following example creates a new zero object by loading the zero object from disk.</p> | |
51 <div class="fragment"><pre class="programlisting"> | |
52 p = zero(<span class="string">'zero.mat'</span>) | |
53 p = zero(<span class="string">'zero.xml'</span>) | |
54 </pre></div> | |
55 | |
56 <!-- --------------- NEXT EXAMPLE --------------- --> | |
57 | |
58 <hr> | |
59 <h2 class="title"><a name="real"></a>Construct a ZERO object with a real zero</h2> | |
60 <p>The following code fragment creates a real zero at 1Hz:</p> | |
61 <div class="fragment"><pre class="programlisting"> | |
62 p = zero(1) | |
63 ---- zero 1 ---- | |
64 real zero: 1 Hz | |
65 ---------------- | |
66 </pre></div> | |
67 <p>It is also possible to use a parameter list (PLIST) object</p> | |
68 <div class="fragment"><pre class="programlisting"> | |
69 pl = plist(<span class="string">'f'</span>, 1); | |
70 | |
71 p = zero(pl) | |
72 ---- zero 1 ---- | |
73 real zero: 1 Hz | |
74 ---------------- | |
75 </pre></div> | |
76 | |
77 <!-- --------------- NEXT EXAMPLE --------------- --> | |
78 | |
79 <hr> | |
80 <h2 class="title"><a name="complex"></a>Construct a ZERO object with a complex zero</h2> | |
81 <p>To create a complex zero, you can specify a quality factor. For example</p> | |
82 <div class="fragment"><pre class="programlisting"> | |
83 p = zero(10,4) | |
84 ---- zero 1 ---- | |
85 complex zero: 10 Hz, Q=4 [-0.0019894+0.015791i] | |
86 ---------------- | |
87 </pre></div> | |
88 <p>It is also possible to use a parameter list (PLIST) object</p> | |
89 <div class="fragment"><pre class="programlisting"> | |
90 pl = plist(<span class="string">'f'</span>, 10, <span class="string">'q'</span>, 4); | |
91 | |
92 zero(pl) | |
93 ---- zero 1 ---- | |
94 complex zero: 10 Hz, Q=4 [-0.0019894+0.015791i] | |
95 ---------------- | |
96 </pre></div> | |
97 | |
98 <!-- ------------------------------------------------ --> | |
99 <!-- --------------- END CONTENT FILE --------------- --> | |
100 <!-- ------------------------------------------------ --> |