tf2zp: Transfer function model conversion to Zero-Pole-Gain model.

Description Usage Arguments Details Value See Also Examples

Description

tf2zp converts the model for a transfer function to zero-pole-gain representation

Usage

1
tf2zp(num, den)

Arguments

num

A numeric vector containing the coefficients of the

den

A numeric vector containing the coefficients of the

Details

tf2zp converts a model object for a transfer function to a zero-pole model, Where num is the numerator and den is the denominator of the transfer function and sys is a transfer function object

Another possible call is: tf2zp(sys)

where sys is an object of transfer-function model.

Value

Returns a list object of 'zpk' class.

See Also

tf2ss zp2tf

Examples

1
2
3
4
5
6
syszp1 <- tf2zp(c(1,1), c(1,2,1))
syszp1
syszp2 <- tf2zp(c(2,2,1), c(1,2,1))
syszp2
unclass(syszp2) # to see list of the zeros,poles and gain as vectors
tf2zp(zp2tf(c(-1,-1), c(-1,-2), 5))

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