Next: zp2sys, Previous: ss2sys, Up: sysinterface
Build system data structure from transfer function format data.
Inputs
- num
- den
- Coefficients of numerator/denominator polynomials.
- tsam
- Sampling interval; default: 0 (continuous time).
- inname
- outname
- Input/output signal names; may be a string or cell array with a single string entry.
Output
- sys
- System data structure.
Example
octave:1> sys=tf2sys([2 1],[1 2 1],0.1); octave:2> sysout(sys) Input(s) 1: u_1 Output(s): 1: y_1 (discrete) Sampling interval: 0.1 transfer function form: 2*z^1 + 1 ----------------- 1*z^2 + 2*z^1 + 1
Extract transfer function data from a system data structure.
See tf for parameter descriptions.
Example
octave:1> sys=ss([1 -2; -1.1,-2.1],[0;1],[1 1]); octave:2> [num,den] = sys2tf(sys) num = 1.0000 -3.0000 den = 1.0000 1.1000 -4.3000