3
<title>sysstructvars - Untitled</title>
4
<meta http-equiv="Content-Type" content="text/html">
5
<meta name="description" content="Untitled">
6
<meta name="generator" content="makeinfo 4.11">
7
<link title="Top" rel="start" href="index.html#Top">
8
<link rel="up" href="sysstruct.html#sysstruct" title="sysstruct">
9
<link rel="next" href="sysstructtf.html#sysstructtf" title="sysstructtf">
10
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11
<meta http-equiv="Content-Style-Type" content="text/css">
12
<style type="text/css"><!--
13
pre.display { font-family:inherit }
14
pre.format { font-family:inherit }
15
pre.smalldisplay { font-family:inherit; font-size:smaller }
16
pre.smallformat { font-family:inherit; font-size:smaller }
17
pre.smallexample { font-size:smaller }
18
pre.smalllisp { font-size:smaller }
19
span.sc { font-variant:small-caps }
20
span.roman { font-family:serif; font-weight:normal; }
21
span.sansserif { font-family:sans-serif; font-weight:normal; }
27
<a name="sysstructvars"></a>
28
Next: <a rel="next" accesskey="n" href="sysstructtf.html#sysstructtf">sysstructtf</a>,
29
Up: <a rel="up" accesskey="u" href="sysstruct.html#sysstruct">sysstruct</a>
33
<h4 class="subsection">30.1.1 Variables common to all <acronym>OCST</acronym> system formats</h4>
35
<p>The data structure elements (and variable types) common to all system
36
representations are listed below; examples of the initialization
37
and use of the system data structures are given in subsequent sections and
38
in the online demo <code>DEMOcontrol</code>.
40
<dt><var>n</var><dt><var>nz</var><dd>The respective number of continuous and discrete states
41
in the system (scalar)
43
<br><dt><var>inname</var><dt><var>outname</var><dd>list of name(s) of the system input, output signal(s). (list of strings)
45
<br><dt><var>sys</var><dd>System status vector. (vector)
47
<p>This vector indicates both what representation was used to initialize
48
the system data structure (called the primary system type) and which
49
other representations are currently up-to-date with the primary system
50
type (see <a href="structaccess.html#structaccess">structaccess</a>).
52
<p>The value of the first element of the vector indicates the primary
56
<dt>0<dd>for tf form (initialized with <code>tf2sys</code> or <code>fir2sys</code>)
58
<br><dt>1<dd>for zp form (initialized with <code>zp2sys</code>)
60
<br><dt>2<dd>for ss form (initialized with <code>ss2sys</code>)
63
<p>The next three elements are boolean flags that indicate whether tf, zp,
64
or ss, respectively, are “up to date" (whether it is safe to use the
65
variables associated with these representations). These flags are
66
changed when calls are made to the <code>sysupdate</code> command.
68
<br><dt><var>tsam</var><dd> Discrete time sampling period (nonnegative scalar).
69
<var>tsam</var> is set to 0 for continuous time systems.
71
<br><dt><var>yd</var><dd> Discrete-time output list (vector)
73
<p>indicates which outputs are discrete time (i.e.,
74
produced by D/A converters) and which are continuous time.
75
yd(ii) = 0 if output ii is continuous, = 1 if discrete.
78
<p>The remaining variables of the system data structure are only present
79
if the corresponding entry of the <code>sys</code> vector is true (=1).