0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
1 The different constructors from each transfer function representations accept as
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
2 an input a model from a another representation so that they can all be converted
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
3 between the different representations. In the current LTPDA version, this applies
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
4 for pole/zero model and rational representation. Following versions will cover the
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
5 partial fraction representation. This is shown in the following transformation table:
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
6
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
7 <div align="center">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
8 <img src="images/TransformTable.png" alt="Pole/zero model TF" border="3">
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
9 </div>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
10
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
11 <h2>From pzmodel to rational</a></h2>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
12 You can transform a <tt>pzmodel</tt> into a <tt>rational</tt> by typing:
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
13 <br>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
14 <div class="fragment"><pre>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
15 >> rat = rational(pzmodel)
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
16 </pre></div>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
17 <br>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
18
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
19 <h2>From rational to pzmodel</a></h2>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
20 You can transform a <tt>rational</tt> into a <tt>pzmodel</tt> by typing:
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
21 <br>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
22 <div class="fragment"><pre>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
23 >> rat = pzmodel(rational)
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
24 </pre></div>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
25 <br>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
26
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
27 <h2>Algorithm</a></h2>
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
28 To translate from <tt>rational</tt> to <tt>pzmodel</tt> representation we need to
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
29 compute the roots of a polynomial and the inverse operation is performed going from
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
30 <tt>pzmodel</tt> to <tt>rational</tt>. More information about the algorithm used can be
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
31 found in MATLAB's functions <a href="matlab:doc('poly')">poly</a> and
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
32 <a href="matlab:doc('roots')">roots</a>.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
33
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
34
|