Mercurial > hg > ltpda
comparison m-toolbox/html_help/help/ug/ltpda_training_topic_4_2.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 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
2 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> | |
3 | |
4 <html lang="en"> | |
5 <head> | |
6 <meta name="generator" content= | |
7 "HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org"> | |
8 <meta http-equiv="Content-Type" content= | |
9 "text/html; charset=us-ascii"> | |
10 | |
11 <title>Transforming models between representations (LTPDA Toolbox)</title> | |
12 <link rel="stylesheet" href="docstyle.css" type="text/css"> | |
13 <meta name="generator" content="DocBook XSL Stylesheets V1.52.2"> | |
14 <meta name="description" content= | |
15 "Presents an overview of the features, system requirements, and starting the toolbox."> | |
16 </head> | |
17 | |
18 <body> | |
19 <a name="top_of_page" id="top_of_page"></a> | |
20 | |
21 <p style="font-size:1px;"> </p> | |
22 | |
23 <table class="nav" summary="Navigation aid" border="0" width= | |
24 "100%" cellpadding="0" cellspacing="0"> | |
25 <tr> | |
26 <td valign="baseline"><b>LTPDA Toolbox</b></td><td><a href="../helptoc.html">contents</a></td> | |
27 | |
28 <td valign="baseline" align="right"><a href= | |
29 "ltpda_training_topic_4_1_3.html"><img src="b_prev.gif" border="0" align= | |
30 "bottom" alt="Rational representation"></a> <a href= | |
31 "ltpda_training_topic_4_3.html"><img src="b_next.gif" border="0" align= | |
32 "bottom" alt="Modelling a system"></a></td> | |
33 </tr> | |
34 </table> | |
35 | |
36 <h1 class="title"><a name="f3-12899" id="f3-12899"></a>Transforming models between representations</h1> | |
37 <hr> | |
38 | |
39 <p> | |
40 <h2>Transforming between different representations</h2> | |
41 | |
42 <p> | |
43 The LTPDA toolbox allows you to go from one representation to the other. However, | |
44 in the current version (v2.3), only the transformations shown in the following | |
45 table are allowed | |
46 </p> | |
47 | |
48 <div align="center"> | |
49 <img src="images/TransformTable.png" alt="Pole/zero model TF" border="3"> | |
50 </div> | |
51 | |
52 <p> | |
53 We can see how this work for the allowed transformation using the models that | |
54 we have just created. To turn our <tt>pzmodel</tt> into a <tt>rational</tt> | |
55 one, we just need to insert the first into the rational constructor | |
56 </p> | |
57 <p> | |
58 For example, if we consider again our <tt>pzmodel</tt> | |
59 </p> | |
60 | |
61 <div class="fragment"><pre> | |
62 pzm = pzmodel(5, [10 2],{1, 0.1},<span class="string">'mymodel'</span>) | |
63 ---- pzmodel 1 ---- | |
64 name: <span class="string">mymodel</span> | |
65 gain: 5 | |
66 delay: 0 | |
67 iunits: [] | |
68 ounits: [] | |
69 description: | |
70 UUID: 9206f503-69c9-4c20-963e-b5604e59b450 | |
71 pole 001: (f=10 Hz,Q=2) | |
72 zero 001: (f=1 Hz,Q=NaN) | |
73 zero 002: (f=0.1 Hz,Q=NaN) | |
74 ------------------- | |
75 </pre></div> | |
76 | |
77 <p> | |
78 To transform it into its rational equivalent we just need to give it as a input to | |
79 the rational constructor | |
80 </p> | |
81 | |
82 <div class="fragment"><pre> | |
83 rat = rational(pzm) | |
84 ---- rational 1 ---- | |
85 model: rational(<span class="string">mymodel</span>) | |
86 num: [1.26651479552922 8.75352187005424 5] | |
87 den: [0.000253302959105844 0.00795774715459477 1] | |
88 iunits: [] | |
89 ounits: [] | |
90 description: | |
91 UUID: 04b7990b-293c-41a7-a3c9-a311e6f3974b | |
92 -------------------- | |
93 </pre></div> | |
94 | |
95 <p> | |
96 The transformation returns again the first <tt>pzmodel</tt> however the | |
97 name property allows us to follow the operations that we've been performing to | |
98 this object. | |
99 </p> | |
100 | |
101 <div class="fragment"><pre> | |
102 pzm2 = pzmodel(rat) | |
103 ---- pzmodel 1 ---- | |
104 name: pzmodel(rational(<span class="string">mymodel</span>)) | |
105 gain: 5 | |
106 delay: 0 | |
107 iunits: [] | |
108 ounits: [] | |
109 description: | |
110 UUID: b2177fde-1465-4c5c-a94f-29d73d9aed67 | |
111 pole 001: (f=10 Hz,Q=2) | |
112 zero 001: (f=1 Hz,Q=NaN) | |
113 zero 002: (f=0.1 Hz,Q=NaN) | |
114 ------------------- | |
115 </pre></div> | |
116 | |
117 | |
118 | |
119 | |
120 | |
121 | |
122 | |
123 | |
124 | |
125 | |
126 | |
127 </p> | |
128 | |
129 <br> | |
130 <br> | |
131 <table class="nav" summary="Navigation aid" border="0" width= | |
132 "100%" cellpadding="0" cellspacing="0"> | |
133 <tr valign="top"> | |
134 <td align="left" width="20"><a href="ltpda_training_topic_4_1_3.html"><img src= | |
135 "b_prev.gif" border="0" align="bottom" alt= | |
136 "Rational representation"></a> </td> | |
137 | |
138 <td align="left">Rational representation</td> | |
139 | |
140 <td> </td> | |
141 | |
142 <td align="right">Modelling a system</td> | |
143 | |
144 <td align="right" width="20"><a href= | |
145 "ltpda_training_topic_4_3.html"><img src="b_next.gif" border="0" align= | |
146 "bottom" alt="Modelling a system"></a></td> | |
147 </tr> | |
148 </table><br> | |
149 | |
150 <p class="copy">©LTP Team</p> | |
151 </body> | |
152 </html> |