zp2sys [control]
— Function File: zp2sys (zer, pol, k, tsam, inname, outname)

Create system data structure from zero-pole data.

Inputs

zer
Vector of system zeros.
pol
Vector of system poles.
k
Scalar leading coefficient.
tsam
Sampling period; default: 0 (continuous system).
inname
outname
Input/output signal names (lists of strings).

Output

sys
System data structure.

Example

          octave:1> sys=zp2sys([1 -1],[-2 -2 0],1);
          octave:2> sysout(sys)
          Input(s)
          1: u_1
          Output(s):
          1: y_1
          zero-pole form:
          1 (s - 1) (s + 1)
          -----------------
          s (s + 2) (s + 2)