tf: Create Transfer function Model.

Description Usage Arguments Details Value See Also Examples

Description

tf creates the model for a transfer function

Usage

1
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

Details

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

Value

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

See Also

ss zpk TF tf2ss tf2zp

Examples

1
2
3
4
5
6
7
8
9
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 
num = rbind(c(0,1,1), c(1,0,1))
den = rbind(c(1,3,2))
tf(num, den)

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