Node:structaccess, Next:structintern, Previous:zp2sys, Up:sysinterface
| syschnames (sys, opt, list, names) | Function File |
Superseded by syssetsignals.
|
| syschtsam (sys, tsam) | Function File |
| This function changes the sampling time (tsam) of the system. Exits with an error if sys is purely continuous time. |
| [n, nz, m, p, yd] = sysdimensions (sys, opt) | Function File |
|
return the number of states, inputs, and/or outputs in the system
sys.
Inputs
Outputs
|
| [stname, inname, outname, yd] = sysgetsignals (sys) | Function File |
| siglist = sysgetsignals (sys, sigid) | Function File |
| signame = sysgetsignals (sys, sigid, signum, strflg) | Function File |
|
Get signal names from a system
Inputs
Outputs
Examples (From octave> sys=ss(rand(4),rand(4,2),rand(3,4)); octave># get all signal names octave> [Ast,Ain,Aout,Ayd] = sysgetsignals(sys) Ast = ( [1] = x_1 [2] = x_2 [3] = x_3 [4] = x_4 ) Ain = ( [1] = u_1 [2] = u_2 ) Aout = ( [1] = y_1 [2] = y_2 [3] = y_3 ) Ayd = 0 0 0 octave> # get only input signal names: octave> Ain = sysgetsignals(sys,"in") Ain = ( [1] = u_1 [2] = u_2 ) octave> # get name of output 2 (in cell array): octave> Aout = sysgetsignals(sys,"out",2) Aout = ( [1] = y_2 ) octave> # get name of output 2 (as string): octave> Aout = sysgetsignals(sys,"out",2,1) Aout = y_2 |
| sysgettype (sys) | Function File |
|
return the initial system type of the system
Input
Output
FIR initialized systems return |
| syssetsignals (sys, opt, names, sig_idx) | Function File |
|
change the names of selected inputs, outputs and states.
Inputs
Outputs
Example
octave:1> sys=ss([1 2; 3 4],[5;6],[7 8]);
octave:2> sys = syssetsignals(sys,"st",str2mat("Posx","Velx"));
octave:3> sysout(sys)
Input(s)
1: u_1
Output(s):
1: y_1
state-space form:
2 continuous states, 0 discrete states
State(s):
1: Posx
2: Velx
A matrix: 2 x 2
1 2
3 4
B matrix: 2 x 1
5
6
C matrix: 1 x 2
7 8
D matrix: 1 x 1
0
|
| sysupdate (sys, opt) | Function File |
|
Update the internal representation of a system.
Inputs
Outputs
Conversion to |
| [systype, nout, nin, ncstates, ndstates] = minfo (inmat) | Function File |
|
Determines the type of system matrix. inmat can be a varying,
a system, a constant, and an empty matrix.
Outputs
|
| sysgettsam (sys) | Function File |
| Return the sampling time of the system sys. |