Mercurial > hg > ltpda
view m-toolbox/html_help/help/ug/constructor_examples_zero_content.html @ 40:977eb37f31cb database-connection-manager
User friendlier errors from utils.mysql.connect
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 18:04:03 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
<!-- $Id: constructor_examples_zero_content.html,v 1.1 2008/03/30 20:40:04 ingo Exp $ --> <!-- -------------------------------------------------- --> <!-- --------------- BEGIN CONTENT FILE --------------- --> <!-- -------------------------------------------------- --> <!-- --------------- Link box: begin --------------- --> <table border="0" summary="Simple list" class="simplelist_nottable_last"> <tr> <td> <a href="constructor_examples_zero.html#empty">Construct empty ZERO object</a> </td> </tr> <tr> <td> <a href="constructor_examples_zero.html#xml_file">Construct a ZERO object by loading the object from a file</a> </td> </tr> <tr> <td> <a href="constructor_examples_zero.html#real">Construct a ZERO object with a real zero</a> </td> </tr> <tr> <td> <a href="constructor_examples_zero.html#complex">Construct a ZERO object with a complex zero</a> </td> </tr> </table> <p>Poles are specified by in the LTPDA Toolbox by a frequency, f, and (optionally) a quality factor, Q.</p> <!-- --------------- Link box: end --------------- --> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="empty"></a>Construct empty ZERO object</h2> <p>The following example creates an empty zero object</p> <div class="fragment"><pre class="programlisting"> p = zero() ---- zero 1 ---- None: NaN Hz ---------------- </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="xml_file"></a>Construct a ZERO object by loading the object from a file</h2> <p>The following example creates a new zero object by loading the zero object from disk.</p> <div class="fragment"><pre class="programlisting"> p = zero(<span class="string">'zero.mat'</span>) p = zero(<span class="string">'zero.xml'</span>) </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="real"></a>Construct a ZERO object with a real zero</h2> <p>The following code fragment creates a real zero at 1Hz:</p> <div class="fragment"><pre class="programlisting"> p = zero(1) ---- zero 1 ---- real zero: 1 Hz ---------------- </pre></div> <p>It is also possible to use a parameter list (PLIST) object</p> <div class="fragment"><pre class="programlisting"> pl = plist(<span class="string">'f'</span>, 1); p = zero(pl) ---- zero 1 ---- real zero: 1 Hz ---------------- </pre></div> <!-- --------------- NEXT EXAMPLE --------------- --> <hr> <h2 class="title"><a name="complex"></a>Construct a ZERO object with a complex zero</h2> <p>To create a complex zero, you can specify a quality factor. For example</p> <div class="fragment"><pre class="programlisting"> p = zero(10,4) ---- zero 1 ---- complex zero: 10 Hz, Q=4 [-0.0019894+0.015791i] ---------------- </pre></div> <p>It is also possible to use a parameter list (PLIST) object</p> <div class="fragment"><pre class="programlisting"> pl = plist(<span class="string">'f'</span>, 10, <span class="string">'q'</span>, 4); zero(pl) ---- zero 1 ---- complex zero: 10 Hz, Q=4 [-0.0019894+0.015791i] ---------------- </pre></div> <!-- ------------------------------------------------ --> <!-- --------------- END CONTENT FILE --------------- --> <!-- ------------------------------------------------ -->