zpkdata

Extracts data from a zero-pole-gain model.

Syntax

[Z, P, K, Ts] = zpkdata(SYS)

Inputs

SYS
Zero-pole-gain data model.

Outputs

Z
A vector containing the zeros of the system.
P
A vector containing the poles of the system.
K
A scalar, the gain of the system.
Ts
Sampling time (in seconds).

Examples

Example 1:
sys = zpk([1 -2], [-1,-2+i,-2-i], 10, 12);
[z, p, k, Ts] = zpkdata(sys)
[z, p, k, Ts] = zpkdata(sys)
z = 
{
[1,1] z = [Matrix] 1 x 2
1  -2
}
}
p = 
{
[1,1] p = [Matrix] 1 x 3
-1 + 0i  -2 + 1i  -2 - 1i
}
}
k = 10
Ts = 12
Example 2:
sys = zpk([], [], 7);
[z, p, k, Ts] = zpkdata(sys)
z = 
{
[1,1] z = [Matrix] 0 x 1
}
p = 
{
[1,1] p = [Matrix] 0 x 1
}
k = 7
Ts = -2

Comments

[Z, P, K, Ts] = zpkdata(SYS) returns the zeros, poles, and gain parameters of the zero, pole, gain model SYS.