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