tfdata
Extracts data from a transfer function model.
Syntax
[NUM, DEN, Ts] = tfdata(SYS)
Inputs
- SYS
- A transfer function model.
Outputs
- NUM
- A matrix (numerator).
- DEN
- A matrix (denominator).
- Ts
- Sampling time (in seconds).
Examples
Transfer function data from numerator and denominator:
h = tf([2 3],[5 1 1]);
[num, den, Ts] = tfdata(h)
num =
{
[1,1] v = [Matrix] 1 x 2
2 3
}
den =
{
[1,1] v = [Matrix] 1 x 3
5 1 1
}
Ts = 0
Transfer function data obtained from state space model:
sys = ss(1,8,2,1);
[sysq.num,sysq.den]=ss2tf(sys.a,sys.b,sys.c,sys.d);
h = tf(sysq.num,sysq.den);
[num, den, Ts] = tfdata(h)
num =
{
[1,1] v = [Matrix] 1 x 2
1 15
}
den =
{
[1,1] v = [Matrix] 1 x 2
1 -1
}
ts = 0
Comments
[NUM, DEN, Ts] = tfdata(SYS) returns transfer function information for a transfer function model object.