Learn R Programming

control (version 0.2.5)

tf: Create Transfer function Model.

Description

tf creates the model for a transfer function

Usage

tf(num, den, Ts = NULL)

Arguments

num

A numeric vector or matrix (for multivariable systems)

den

A numeric vector or matrix (for multivariable systems)

Ts

Sample time for discrete time systems

Value

Returns an object of 'tf' class list with a proper transfer function or with warnings when not proper.

Details

tf creates a model object for a transfer function, Where num is the numerator and den is the denominator of the transfer function.

See Also

ss zpk TF tf2ss tf2zp

Examples

Run this code
# NOT RUN {
tf(1, c(1,2,1))
sys1 <- tf(1, c(1,2,1))
sys1$num
sys1$den

# }
# NOT RUN {
  for single-input multi-output systems (SIMO) each numerator row for one output 
# }
# NOT RUN {
num = rbind(c(0,1,1), c(1,0,1))
den = rbind(c(1,3,2))
tf(num, den)

# }

Run the code above in your browser using DataLab