comparison m-toolbox/html_help/help/ug/ssm_build_description_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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML>
3 <HEAD>
4 <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
5 <TITLE></TITLE>
6 <META NAME="GENERATOR" CONTENT="OpenOffice.org 3.1 (Win32)">
7 <META NAME="CREATED" CONTENT="0;0">
8 <META NAME="CHANGEDBY" CONTENT="Adrien G">
9 <META NAME="CHANGED" CONTENT="20090827;17511500">
10 </HEAD>
11 <BODY LANG="en-US" DIR="LTR">
12 <P>The models can be built from a plist constructor describing each
13 field. It is possible to give incomplete information on the model and
14 let the constructor auto-complete some fields.</P>
15 <P>It is still rather lengthy to build a ssm object, and it is
16 advisable to write built-in models to limit the time spent on
17 modeling.</P>
18 <H2>Incomplete description without parameters (params field) and
19 input/state/outputs names</H2>
20 <P>The most retrained set of inputs is
21 </P>
22 <DIV CLASS="fragment"><PRE STYLE="margin-bottom: 0.5cm">sys = ssm(plist( 'amats',amats, 'bmats',bmats, 'cmats',cmats, 'dmats',dmats, 'timestep',timestep, 'name',name )</PRE></DIV><P>
23 Then a shortcut for the scripts is (note that the input order must be
24 respected)</P>
25 <DIV CLASS="fragment"><PRE STYLE="margin-bottom: 0.5cm">sys = ssm( amats, bmats, cmats, dmats, timestep, name )</PRE></DIV><P>
26 example :</P>
27 <DIV CLASS="fragment"><PRE><FONT COLOR="#000000">&gt;&gt; name = </FONT><FONT COLOR="#a020f0">'sys'</FONT><FONT COLOR="#000000">;</FONT>
28 &gt;&gt; timestep = 0;
29 &gt;&gt; amats = cell(3,3);
30 &gt;&gt; bmats = cell(3,3);
31 &gt;&gt; cmats = cell(3,3);
32 &gt;&gt; dmats = cell(3,3);
33 <FONT COLOR="#000000">&gt;&gt; amats{1,1} = -(sym(</FONT><FONT COLOR="#a020f0">'OMEGA'</FONT><FONT COLOR="#000000">));</FONT>
34 &gt;&gt; amats{2,2} = -2;
35 &gt;&gt; amats{3,3} = [0 1 ; -0.05 -0.01];
36 &gt;&gt; amats{3,1} = [-1;-3];
37 &gt;&gt; bmats{1,1} = 1;
38 &gt;&gt; bmats{2,2} = 2;
39 &gt;&gt; bmats{3,3} = 3*eye(2);
40 &gt;&gt; cmats{1,1} = 1;
41 &gt;&gt; cmats{2,2} = 1;
42 &gt;&gt; cmats{3,3} = eye(2);
43 &gt;&gt; dmats{1,3} = [6 6];
44 &gt;&gt; dmats{2,1} = 6;
45 &gt;&gt; dmats{3,2} = [6;6];
46 <FONT COLOR="#000000">&gt;&gt; sys = ssm(plist( </FONT><FONT COLOR="#0000ff">...</FONT>
47 <FONT SIZE=2>'amats'</FONT><FONT COLOR="#000000">,amats, </FONT>'bmats'<FONT COLOR="#000000">,bmats, </FONT>'cmats'<FONT COLOR="#000000">,cmats, </FONT>'dmats'<FONT COLOR="#000000">,dmats, </FONT><FONT COLOR="#0000ff">...</FONT>
48 <FONT SIZE=2>'timestep'</FONT><FONT COLOR="#000000">,timestep, </FONT>'name'<FONT COLOR="#000000">,name))</FONT>
49 ------ ssm/1 -------
50 amats: { [1x1] [] []
51 [] [1x1] []
52 [2x1] [] [2x2] } [3x3]
53 mmats: { [1x1] [] []
54 [] [1x1] []
55 [] [] [2x2] } [3x3]
56 bmats: { [1x1] [] []
57 [] [1x1] []
58 [] [] [2x2] } [3x3]
59 cmats: { [1x1] [] []
60 [] [1x1] []
61 [] [] [2x2] } [3x3]
62 dmats: { [] [] [1x2]
63 [1x1] [] []
64 [] [2x1] [] } [3x3]
65 timestep: 0
66 inputs: [1x3 ssmblock]
67 1 : input 1 | input 1 &gt; 1 []
68 2 : input 2 | input 2 &gt; 1 []
69 3 : input 3 | input 3 &gt; 1 [], input 3 &gt; 2 []
70 states: [1x3 ssmblock]
71 1 : state 1 | state 1 &gt; 1 []
72 2 : state 2 | state 2 &gt; 1 []
73 3 : state 3 | state 3 &gt; 1 [], state 3 &gt; 2 []
74 outputs: [1x3 ssmblock]
75 1 : output 1 | output 1 &gt; 1 []
76 2 : output 2 | output 2 &gt; 1 []
77 3 : output 3 | output 3 &gt; 1 [], output 3 &gt; 2 []
78 params: (empty-plist) [1x1 plist]
79 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
80 Ninputs: 3
81 inputsizes: [1 1 2]
82 Noutputs: 3
83 outputsizes: [1 1 2]
84 Nstates: 3
85 statesizes: [1 1 2]
86 Nparams: 0
87 isnumerical: false
88 hist: ssm.hist [1x1 history]
89 procinfo: (empty-plist) [1x1 plist]
90 plotinfo: (empty-plist) [1x1 plist]
91 name: sys
92 description:
93 mdlfile:
94 UUID: 61f33fcc-f06a-4d71-944f-3ea094c80458
95 --------------------</PRE></DIV><P>
96 Then the field &ldquo;params&rdquo; must be user set using the syntax
97 &ldquo;sys.setParams(&lt;parameter plist&gt;)&rdquo;. Otherwise the
98 toolbox will simply assume there are no parameters in the system and
99 the matrices should be exclusively numerical in this case..</P>
100 <P>The content of &bdquo;params&ldquo; is a plist with parameters
101 whose:</P>
102 <UL>
103 <LI><P>KEY is the name of the parameter in the matrices</P>
104 <LI><P>VALUE is a property which must be set before proceeding
105 numerical substitutions</P>
106 <LI><P>MIN, MAX, and SIGMA which are useful for an optimizer if
107 system identification is proceeded.</P>
108 </UL>
109 <DIV CLASS="fragment"><PRE><FONT SIZE=2><FONT FACE="Courier New, monospace"><FONT COLOR="#000000">&gt;&gt;sys.setParams(plist({</FONT><FONT COLOR="#a020f0">'OMEGA'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'system frequency'</FONT><FONT COLOR="#000000">}, 2))</FONT></FONT></FONT>
110 ------ ssm/1 -------
111 amats: { [1x1] [] []
112 [] [1x1] []
113 [2x1] [] [2x2] } [3x3]
114 mmats: { [1x1] [] []
115 [] [1x1] []
116 [] [] [2x2] } [3x3]
117 bmats: { [1x1] [] []
118 [] [1x1] []
119 [] [] [2x2] } [3x3]
120 cmats: { [1x1] [] []
121 [] [1x1] []
122 [] [] [2x2] } [3x3]
123 dmats: { [] [] [1x2]
124 [1x1] [] []
125 [] [2x1] [] } [3x3]
126 timestep: 0
127 inputs: [1x3 ssmblock]
128 1 : input 1 | input 1 &gt; 1 []
129 2 : input 2 | input 2 &gt; 1 []
130 3 : input 3 | input 3 &gt; 1 [], input 3 &gt; 2 []
131 states: [1x3 ssmblock]
132 1 : state 1 | state 1 &gt; 1 []
133 2 : state 2 | state 2 &gt; 1 []
134 3 : state 3 | state 3 &gt; 1 [], state 3 &gt; 2 []
135 outputs: [1x3 ssmblock]
136 1 : output 1 | output 1 &gt; 1 []
137 2 : output 2 | output 2 &gt; 1 []
138 3 : output 3 | output 3 &gt; 1 [], output 3 &gt; 2 []
139 params: (OMEGA=2) [1x1 plist]
140 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
141 Ninputs: 3
142 inputsizes: [1 1 2]
143 Noutputs: 3
144 outputsizes: [1 1 2]
145 Nstates: 3
146 statesizes: [1 1 2]
147 Nparams: 1
148 isnumerical: false
149 hist: ssm.hist [1x1 history]
150 procinfo: (empty-plist) [1x1 plist]
151 plotinfo: (empty-plist) [1x1 plist]
152 name: sys
153 description:
154 mdlfile:
155 UUID: 7bccc440-fcc3-4d71-bf9c-057bbc08d318
156 --------------------</PRE></DIV><P>
157 The method &ldquo;setParams&rdquo; should not be confused with
158 &ldquo;setParameters&rdquo; which only allows to modify the property
159 VALUE in the &ldquo;params&rdquo; field.</P>
160 <P>Input blocks and input variables will be automatically maned after
161 their index number in this case, and the description field will be
162 empty.
163 </P>
164 <H2>Incomplete description whithout input/state/outputs names</H2>
165 <P>In case the user has a plist describing the parameters, he may use
166 the following either of the syntaxes:</P>
167 <DIV CLASS="fragment"><PRE><FONT FACE="Courier New, monospace"><FONT SIZE=2><FONT COLOR="#000000">&gt;&gt; sys = ssm(plist( </FONT><FONT COLOR="#a020f0">'amats'</FONT><FONT COLOR="#000000">,amats, </FONT><FONT COLOR="#a020f0">'bmats'</FONT><FONT COLOR="#000000">,bmats, </FONT><FONT COLOR="#a020f0">'cmats'</FONT><FONT COLOR="#000000">,cmats, </FONT><FONT COLOR="#a020f0">'dmats'</FONT><FONT COLOR="#000000">,dmats, </FONT><FONT COLOR="#a020f0">'timestep'</FONT><FONT COLOR="#000000">,timestep, </FONT><FONT COLOR="#a020f0">'name'</FONT><FONT COLOR="#000000">,name, </FONT><FONT COLOR="#a020f0">'params'</FONT><FONT COLOR="#000000">,params ));</FONT></FONT></FONT>
168 &gt;&gt; sys = ssm( amats, bmats, cmats, dmats, timestep, name, params )
169
170 <FONT COLOR="#000000">&gt;&gt; name = </FONT><FONT COLOR="#a020f0">'sys'</FONT><FONT COLOR="#000000">;</FONT>
171 &gt;&gt; timestep = 0;
172 <FONT COLOR="#000000">&gt;&gt; params = plist({</FONT><FONT COLOR="#a020f0">'OMEGA'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'system frequency'</FONT><FONT COLOR="#000000">}, 2);</FONT>
173 &gt;&gt; amats = cell(3,3);
174 &gt;&gt; bmats = cell(3,3);
175 &gt;&gt; cmats = cell(3,3);
176 &gt;&gt; dmats = cell(3,3);
177 <FONT COLOR="#000000">&gt;&gt; amats{1,1} = -(sym(</FONT><FONT COLOR="#a020f0">'OMEGA'</FONT><FONT COLOR="#000000">));</FONT>
178 &gt;&gt; amats{2,2} = -2;
179 &gt;&gt; amats{3,3} = [0 1 ; -0.05 -0.01];
180 &gt;&gt; amats{3,1} = [-1;-3];
181 &gt;&gt; bmats{1,1} = 1;
182 &gt;&gt; bmats{2,2} = 2;
183 &gt;&gt; bmats{3,3} = 3*eye(2);
184 &gt;&gt; cmats{1,1} = 1;
185 &gt;&gt; cmats{2,2} = 1;
186 &gt;&gt; cmats{3,3} = eye(2);
187 &gt;&gt; dmats{1,3} = [6 6];
188 &gt;&gt; dmats{2,1} = 6;
189 &gt;&gt; dmats{3,2} = [6;6];
190 <FONT COLOR="#000000">&gt;&gt; sys = ssm(plist( </FONT><FONT COLOR="#0000ff">...</FONT>
191 <FONT COLOR="#a020f0">'amats'</FONT><FONT COLOR="#000000">,amats, </FONT><FONT COLOR="#a020f0">'bmats'</FONT><FONT COLOR="#000000">,bmats, </FONT><FONT COLOR="#a020f0">'cmats'</FONT><FONT COLOR="#000000">,cmats, </FONT><FONT COLOR="#a020f0">'dmats'</FONT><FONT COLOR="#000000">,dmats, </FONT><FONT COLOR="#0000ff">...</FONT>
192 <FONT COLOR="#a020f0">'timestep'</FONT><FONT COLOR="#000000">,timestep, </FONT><FONT COLOR="#a020f0">'name'</FONT><FONT COLOR="#000000">,name, </FONT><FONT COLOR="#a020f0">'params'</FONT><FONT COLOR="#000000">,params ));</FONT></PRE></DIV><P>
193 Then the inputs, states and outputs name fields are still
194 automatically set.
195 </P>
196 <P>They can be modified by using the &ldquo;setBlock*&rdquo; and
197 &ldquo;setPort*&rdquo; setter methods. Blocks are vectors of ports
198 which will be matched when assembling two system. Setting their name
199 correctly is important as the names are used to identify
200 automatically which output will be fed to which input. Ports are
201 independent variables and have properties like the name, the
202 description and the unit which the user may want to set to keep track
203 of the systems data. Note that there is no unit check implemented
204 when assembling two systems.</P>
205 <P>The setter functions are respectively &ldquo;setBlockNames&rdquo;,
206 &ldquo;setBlockDescription&rdquo;, &ldquo;setPortNames&rdquo;,
207 &ldquo;setPortDescriptions&rdquo;, &ldquo;setPortUnits&rdquo;.</P>
208 <DIV CLASS="fragment"><PRE><FONT COLOR="#000000">&gt;&gt; sys.setBlockNames(plist(</FONT><FONT COLOR="#a020f0">'field'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'inputs'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'blocks'</FONT><FONT COLOR="#000000">, [1 2 3], </FONT><FONT COLOR="#a020f0">'names'</FONT><FONT COLOR="#000000">, {</FONT><FONT COLOR="#a020f0">'myinput1'</FONT><FONT COLOR="#000000">,</FONT><FONT COLOR="#a020f0">'myinput2'</FONT><FONT COLOR="#000000">,</FONT><FONT COLOR="#a020f0">'myinput3'</FONT><FONT COLOR="#000000">} ));</FONT>
209 <FONT COLOR="#000000">&gt;&gt; sys.setBlockDescriptions(plist(</FONT><FONT COLOR="#a020f0">'field'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'inputs'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'blocks'</FONT><FONT COLOR="#000000">, {</FONT><FONT COLOR="#a020f0">'myinput1'</FONT><FONT COLOR="#000000">}, </FONT><FONT COLOR="#a020f0">'descriptions'</FONT><FONT COLOR="#000000">,{</FONT><FONT COLOR="#a020f0">'myinput1 description'</FONT><FONT COLOR="#000000">} ));</FONT>
210 <FONT COLOR="#000000">&gt;&gt; sys.setPortNames(plist(</FONT><FONT COLOR="#a020f0">'field'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'inputs'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'block'</FONT><FONT COLOR="#000000">, {</FONT><FONT COLOR="#a020f0">'myinput3'</FONT><FONT COLOR="#000000">}, </FONT><FONT COLOR="#a020f0">'ports'</FONT><FONT COLOR="#000000">, [1 2], </FONT><FONT COLOR="#a020f0">'names'</FONT><FONT COLOR="#000000">,{</FONT><FONT COLOR="#a020f0">'my port 3-1'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'my port 3-2'</FONT><FONT COLOR="#000000">} ));</FONT>
211 <FONT COLOR="#000000">&gt;&gt; sys.setPortDescriptions(plist(</FONT><FONT COLOR="#a020f0">'field'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'inputs'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'block'</FONT><FONT COLOR="#000000">, {</FONT><FONT COLOR="#a020f0">'myinput3'</FONT><FONT COLOR="#000000">}, </FONT><FONT COLOR="#a020f0">'ports'</FONT><FONT COLOR="#000000">, [1 2], </FONT><FONT COLOR="#a020f0">'descriptions'</FONT><FONT COLOR="#000000">,{</FONT><FONT COLOR="#a020f0">'first description'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'second description'</FONT><FONT COLOR="#000000">} ));</FONT>
212 <FONT COLOR="#000000">&gt;&gt; sys.setPortUnits(plist(</FONT><FONT COLOR="#a020f0">'field'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'inputs'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'block'</FONT><FONT COLOR="#000000">, {</FONT><FONT COLOR="#a020f0">'myinput3'</FONT><FONT COLOR="#000000">}, </FONT><FONT COLOR="#a020f0">'ports'</FONT><FONT COLOR="#000000">, [1 2], </FONT><FONT COLOR="#a020f0">'units'</FONT><FONT COLOR="#000000">, [unit(</FONT><FONT COLOR="#a020f0">'kg m^-2'</FONT><FONT COLOR="#000000">) unit(</FONT><FONT COLOR="#a020f0">'m'</FONT><FONT COLOR="#000000">)] ));</FONT>
213 &gt;&gt; sys.inputs
214
215 ------ ssmblock/1 -------
216 name: myinput1
217 ports: input 1 &gt; 1 [] [1x1 ssmport]
218 description: myinput1 description
219 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
220 -------------------------
221 ------ ssmblock/2 -------
222 name: myinput2
223 ports: input 2 &gt; 1 [] [1x1 ssmport]
224 description:
225 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
226 -------------------------
227 ------ ssmblock/3 -------
228 name: myinput3
229 ports: my port 3-1 [kg m^(-2)], my port 3-2 [m] [1x2 ssmport]
230 description:
231 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
232 -------------------------
233
234 &gt;&gt;sys.inputs(3).ports
235
236 ------ ssmport/1 -------
237 name: my port 3-1
238 units: [kg m^(-2)] [1x1 unit]
239 description: first description
240 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
241 ------------------------
242 ------ ssmport/2 -------
243 name: my port 3-2
244 units: [m] [1x1 unit]
245 description: second description
246 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
247 ------------------------</PRE></DIV><P>
248 So far there is no special display function for ssmblocks so the
249 description of the ports is not displayed. This may change in the
250 future</P>
251 <H2>Description whith input/state/outputs names</H2>
252 <DIV CLASS="fragment"><PRE>Then a more extensive set of inputs is :
253 <FONT COLOR="#000000">&gt;&gt;sys = ssm(plist( </FONT><FONT COLOR="#a020f0">'amats'</FONT><FONT COLOR="#000000">,amats, </FONT><FONT COLOR="#a020f0">'bmats'</FONT><FONT COLOR="#000000">,bmats, </FONT><FONT COLOR="#a020f0">'cmats'</FONT><FONT COLOR="#000000">,cmats, </FONT><FONT COLOR="#a020f0">'dmats'</FONT><FONT COLOR="#000000">,dmats, </FONT><FONT COLOR="#a020f0">'timestep'</FONT><FONT COLOR="#000000">,timestep, </FONT><FONT COLOR="#a020f0">'name'</FONT><FONT COLOR="#000000">,name, </FONT><FONT COLOR="#a020f0">'params'</FONT><FONT COLOR="#000000">,params, </FONT><FONT COLOR="#a020f0">'statenames'</FONT><FONT COLOR="#000000">,statenames, </FONT><FONT COLOR="#a020f0">'inputnames'</FONT><FONT COLOR="#000000">,inputnames, </FONT><FONT COLOR="#a020f0">'outputnames'</FONT><FONT COLOR="#000000">,outputnames ));</FONT>
254 &gt;&gt; sys = ssm( amats, bmats, cmats, dmats, timestep, name, params, statenames, inputnames, outputnames );</PRE></DIV><P>
255 Still here, the port names are set automatically without any
256 description or unit.</P>
257 <H2>Complete description</H2>
258 <P>example :</P>
259 <DIV CLASS="fragment"><PRE><FONT COLOR="#000000">&gt;&gt; name = </FONT><FONT COLOR="#a020f0">'sys'</FONT><FONT COLOR="#000000">;</FONT>
260 <FONT COLOR="#000000">&gt;&gt; statenames = {</FONT><FONT COLOR="#a020f0">'ss1'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'ss2'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'ss3'</FONT><FONT COLOR="#000000">};</FONT>
261 <FONT COLOR="#000000">&gt;&gt; inputnames = {</FONT><FONT COLOR="#a020f0">'input1'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'input2'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'input3'</FONT><FONT COLOR="#000000">};</FONT>
262 <FONT COLOR="#000000">&gt;&gt; outputnames = {</FONT><FONT COLOR="#a020f0">'output1'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'output2'</FONT><FONT COLOR="#000000"> </FONT><FONT COLOR="#a020f0">'output3'</FONT><FONT COLOR="#000000">};</FONT>
263 &gt;&gt; timestep = 0;
264 <FONT COLOR="#000000">&gt;&gt; params = plist({</FONT><FONT COLOR="#a020f0">'OMEGA'</FONT><FONT COLOR="#000000">, </FONT><FONT COLOR="#a020f0">'system frequency'</FONT><FONT COLOR="#000000">}, 2);</FONT>
265 &gt;&gt; amats = cell(3,3);
266 &gt;&gt; bmats = cell(3,3);
267 &gt;&gt; cmats = cell(3,3);
268 &gt;&gt; dmats = cell(3,3);
269 <FONT COLOR="#000000">&gt;&gt; amats{1,1} = -(sym(</FONT><FONT COLOR="#a020f0">'OMEGA'</FONT><FONT COLOR="#000000">));</FONT>
270 &gt;&gt; amats{2,2} = -2;
271 &gt;&gt; amats{3,3} = [0 1 -0.05 -0.01];
272 &gt;&gt; amats{3,1} = [-1;-3];
273 &gt;&gt; bmats{1,1} = 1;
274 &gt;&gt; bmats{2,2} = 2;
275 &gt;&gt; bmats{3,3} = 3*eye(2);
276 &gt;&gt; cmats{1,1} = 1;
277 &gt;&gt; cmats{2,2} = 1;
278 &gt;&gt; cmats{3,3} = eye(2);
279 &gt;&gt; dmats{1,3} = [6 6];
280 &gt;&gt; dmats{2,1} = 6;
281 &gt;&gt; dmats{3,2} = [6;6];
282 <FONT COLOR="#000000">&gt;&gt; sys = ssm(plist( </FONT><FONT COLOR="#0000ff">...</FONT>
283 <FONT COLOR="#a020f0"> 'amats'</FONT><FONT COLOR="#000000">,amats, </FONT><FONT COLOR="#a020f0">'bmats'</FONT><FONT COLOR="#000000">,bmats, </FONT><FONT COLOR="#a020f0">'cmats'</FONT><FONT COLOR="#000000">,cmats, </FONT><FONT COLOR="#a020f0">'dmats'</FONT><FONT COLOR="#000000">,dmats, </FONT><FONT COLOR="#0000ff">...</FONT>
284 <FONT COLOR="#a020f0"> 'timestep'</FONT><FONT COLOR="#000000">,timestep, </FONT><FONT COLOR="#a020f0">'name'</FONT><FONT COLOR="#000000">,name, </FONT><FONT COLOR="#a020f0">'params'</FONT><FONT COLOR="#000000">,params, </FONT><FONT COLOR="#0000ff">...</FONT>
285 <FONT COLOR="#a020f0"> 'statenames'</FONT><FONT COLOR="#000000">,statenames, </FONT><FONT COLOR="#a020f0">'inputnames'</FONT><FONT COLOR="#000000">,inputnames, </FONT><FONT COLOR="#a020f0">'outputnames'</FONT><FONT COLOR="#000000">,outputnames ));</FONT>
286 &gt;&gt; sys
287 ------ ssm/1 -------
288 amats: { [1x1] [] []
289 [] [1x1] []
290 [2x1] [] [2x2] } [3x3]
291 mmats: { [1x1] [] []
292 [] [1x1] []
293 [] [] [2x2] } [3x3]
294 bmats: { [1x1] [] []
295 [] [1x1] []
296 [] [] [2x2] } [3x3]
297 cmats: { [1x1] [] []
298 [] [1x1] []
299 [] [] [2x2] } [3x3]
300 dmats: { [] [] [1x2]
301 [1x1] [] []
302 [] [2x1] [] } [3x3]
303 timestep: 0
304 inputs: [1x3 ssmblock]
305 1 : input1 | input1 &gt; 1 []
306 2 : input2 | input2 &gt; 1 []
307 3 : input3 | input3 &gt; 1 [], input3 &gt; 2 []
308 states: [1x3 ssmblock]
309 1 : ss1 | ss1 &gt; 1 []
310 2 : ss2 | ss2 &gt; 1 []
311 3 : ss3 | ss3 &gt; 1 [], ss3 &gt; 2 []
312 outputs: [1x3 ssmblock]
313 1 : output1 | output1 &gt; 1 []
314 2 : output2 | output2 &gt; 1 []
315 3 : output3 | output3 &gt; 1 [], output3 &gt; 2 []
316 params: (OMEGA=2) [1x1 plist]
317 version: $Id: ssm_build_description_content.html,v 1.4 2009/08/28 15:11:53 adrien Exp $
318 Ninputs: 3
319 inputsizes: [1 1 2]
320 Noutputs: 3
321 outputsizes: [1 1 2]
322 Nstates: 3
323 statesizes: [1 1 2]
324 Nparams: 1
325 isnumerical: false
326 hist: ssm.hist [1x1 history]
327 procinfo: (empty-plist) [1x1 plist]
328 plotinfo: (empty-plist) [1x1 plist]
329 name: sys
330 description:
331 mdlfile: UUID: b30c0d1d-9d09-4fd5-8dc1-8185f8b1c165</PRE></DIV><P>
332 <BR>This constructor still
333 does not set ports properties (except automatic name) nor the block
334 description. <BR>These may be set by the user later on using the
335 setter functions above.<BR><BR><BR><BR><BR>
336 </P>
337 </BODY>
338 </HTML>