tfdata: Retrieve Transfer function data

Description Usage Arguments Details Value See Also Examples

Description

tfdata retrieves the model for a transfer function from a sys object

Usage

1
tfdata(sys1)

Arguments

sys1

an LTI system object of tf, ss or zpk classes

Details

tfdata retrieves a model object for a transfer function, from a sys object of tf, ss and zpk classes

Value

Returns a list object of tf class containing numerator and denominator coefficients in desecending values of s. For multiple-input multiple-output systems (MIMO) a list containing tf sys objects for as many outputs is returned

See Also

tf ssdata zpkdata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sys1 <- zpk(NULL, c(-1,-1), 1)
tfdata(sys1)
A <- rbind(c(-2, -1), c(1,0)); B <- rbind(1,0);
C <- cbind(0,1); D <- 0
tfdata( ss(A, B, C, D) )
tfdata(ss2zp( A,B,C,D))
tfdata(tf(c(1), c(1,2,1)))

 ## Not run:   MIMO system 
A = rbind(c(0,1), c(-25,-4)); B = rbind(c(1,1), c(0,1));
C = rbind(c(1,0), c(0,1)); D = rbind(c(0,0), c(0,0))
tfdata(ss(A,B,C,D))

benubah/control documentation built on May 10, 2020, 1:38 a.m.