Extract state space representation from system data structure.
Input
- sys
- System data structure.
Outputs
A warning massage is printed if the system is a mixed continuous and discrete system.
- a
- b
- c
- d
- State space matrices for sys.
- tsam
- Sampling time of sys (0 if continuous).
- n
- nz
- Number of continuous, discrete states (discrete states come last in state vector x).
- stname
- inname
- outname
- Signal names (lists of strings); names of states, inputs, and outputs, respectively.
- yd
- Binary vector; yd(ii) is 1 if output y(ii) is discrete (sampled); otherwise yd(ii) is 0.
Example
octave:1> sys=tf2sys([1 2],[3 4 5]); octave:2> [a,b,c,d] = sys2ss(sys) a = 0.00000 1.00000 -1.66667 -1.33333 b = 0 1 c = 0.66667 0.33333 d = 0