tfdata {control}R Documentation

Retrieve Transfer function data

Description

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

Usage

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

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))


[Package control version 0.2.5 Index]