3430
|
1 ## Copyright (C) 1996, 1998 Auburn University. All rights reserved. |
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by the |
|
7 ## Free Software Foundation; either version 2, or (at your option) any |
|
8 ## later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 ## for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, write to the Free |
5307
|
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
18 ## 02110-1301 USA. |
3430
|
19 |
6522
|
20 save_var = page_screen_output (); |
|
21 page_screen_output (1); |
3430
|
22 disp("Description of system data structure:") |
|
23 disp("A linear system is stored in a structure, and may be represented in") |
|
24 disp("ss (state space), tf (transfer function), and/or zp (zero-pole-gain)") |
|
25 disp("form.") |
|
26 disp(" ") |
|
27 disp("variables in all representations:") |
|
28 disp("inname: list of signal names (strings) containing name(s) of system ") |
|
29 disp(" inputs; see is_signal_list"); |
|
30 disp("n: number of continuous states") |
|
31 disp("nz: number of discrete states") |
|
32 disp("outname: list of signal names (strings) containing name(s) of system ") |
|
33 disp(" outputs"); |
|
34 disp(" ") |
|
35 disp("variables in all representations:(cont'd)") |
|
36 disp("sys: system status vector. This vector indicates both what") |
|
37 disp(" representation was used to initialize the system data structure") |
|
38 disp(" (called the primary system type) and which other representations") |
|
39 disp(" are currently up-to-date with the primary system type.") |
|
40 disp(" sys(0): primary system type") |
|
41 disp(" =0 for tf form") |
|
42 disp(" =1 for zp form") |
|
43 disp(" =2 for ss form") |
|
44 disp(" sys(1:3): indicate whether tf, zp, or ss, respectively, are") |
|
45 disp(" \"up to date\" (whether it is safe to use the variables") |
|
46 disp(" associated with these representations)") |
|
47 disp(" sys(1): = 1 if tf variables are up to date") |
|
48 disp(" = 0 else"); |
|
49 disp(" sys(2): = 1 if zp variables are up to date") |
|
50 disp(" = 0 else"); |
|
51 disp(" sys(3): = 1 if ss variables are up to date") |
|
52 disp(" = 0 else"); |
|
53 disp("You can update alternative representations internally with the") |
|
54 disp("sysupdate command:") |
|
55 disp(" ") |
|
56 help sysupdate |
|
57 disp("===============================") |
|
58 disp("More variables common to all representations in system data structures:"); |
|
59 disp("tsam: discrete time sampling interval ") |
|
60 disp(" =0 if system is purely continuous"); |
|
61 disp(" >0 if system has discrete-time states or outputs"); |
|
62 disp("yd: vector indicating which outputs are discrete time (i.e.,") |
|
63 disp(" produced by D/A converters) and which are continuous time.") |
|
64 disp(" yd(ii) = 0 if output ii is continuous, = 1 if discrete.") |
|
65 disp(" ") |
|
66 disp("===============================") |
|
67 disp("variables in tf representations (SISO only):") |
|
68 disp("num: vector of numerator coefficients") |
|
69 disp("den: vector of denominator coefficients") |
|
70 disp(" ") |
|
71 disp("===============================") |
|
72 disp("variables in zp representations (SISO only):") |
|
73 disp("zer: vector of system zeros") |
|
74 disp("pol: vector of system poles") |
|
75 disp("k: system leading coefficient") |
|
76 disp(" ") |
|
77 disp("===============================") |
|
78 disp("variables in ss representations:") |
|
79 disp("a,b,c,d: usual state-space matrices. If a system has both") |
|
80 disp(" continuous and discrete states, they are sorted so that") |
|
81 disp(" continuous states come first, then discrete states") |
|
82 disp(" ") |
|
83 disp("WARNING: some functions (e.g., bode) will not accept systems") |
|
84 disp("with both discrete and continuous states/outputs") |
|
85 disp("stname: list of signal names (strings) containing name(s) of system ") |
|
86 disp(" states"); |
|
87 disp("===============================") |
|
88 disp("Object oriented programming:") |
|
89 disp("It is recommended that users do not directly access the internal") |
|
90 disp("variables themselves, but use the interface functions") |
4771
|
91 disp(" fir ss tf sys2fir") |
3430
|
92 disp(" sys2ss sys2tf sys2zp syschtsam") |
|
93 disp(" sysdimensions sysgetsignals syssetsignals sysgettype") |
4771
|
94 disp(" zp ") |
3430
|
95 disp("to create/access internal variables. "); |
6522
|
96 page_screen_output (save_var); |