comparison m-toolbox/html_help/help/ug/rational_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
2 <p>
3 Transfer functions can be expressed as a quocient of polynomials as in the following expression
4 </p>
5 <br>
6 <div align="center">
7 <img src="images/rational_tf_eqn.png" alt="Pole/zero model TF" border="3">
8 </div>
9 <br>
10 <p>
11 The constructor can be used in different ways
12 </p>
13 <h2>From coefficients</a></h2>
14 <p>
15 The standard way is to input the coefficients of your filter. The constructor
16 accepts as a optional properties the name
17 </p>
18 <br>
19 <div class="fragment"><pre>
20 >> rat = rational([1 3 5 7],[5 10 0.01],'filter_name')
21 ---- rational 1 ----
22 model: filter_name
23 num: [1 3 5 7]
24 den: [5 10 0.01]
25 iunits: []
26 ounits: []
27 --------------------
28 </pre></div>
29 <br>
30 <h2>From partial XML file</a></h2>
31 You can input a XML file containing a transfer function model into the constructor
32 <br>
33 <div class="fragment"><pre>
34 >> rat = rational('datafile.xml')
35 </pre></div>
36 <br>
37 <h2>From mat file</a></h2>
38 You can input a mat file containing a transfer function model into the constructor
39 <br>
40 <div class="fragment"><pre>
41 >> rat = rational('datafile.mat')
42 </pre></div>
43 <br>
44 <h2>From plist</a></h2>
45 All the properties of the filter can be specified in a plist and then passed to the constructor:
46 <br>
47 <div class="fragment"><pre>
48 >> pl = plist('iunits','m','ounits','V','num',[1 3 10],'den',[4 6],...
49 'name','filter_mame');
50 >> par = parfrac(pl)
51 ---- rational 1 ----
52 model: filter_mame
53 num: [1 3 10]
54 den: [4 6]
55 iunits: [m]
56 ounits: [V]
57 --------------------
58 </pre></div>
59 <br>
60 <h2>From repository</a></h2>
61 Rational transfer function can be obtained from the <a href="repo.html"> repository </a> with the following syntax.
62 <br>
63 <div class="fragment"><pre>
64 >> rat = rational('Hostname','localhost','Database','ltpda',...
65 'ID',[],'CID',[],'Binary',yes)
66 </pre></div>
67 <br>