Learn R Programming

control (version 0.2.5)

zp2ss: Convert Zero-Pole-Gain Model to State-Space Model

Description

zp2ss converts a system represented in zero-pole form to state-space

Usage

zp2ss(z,p,k)

Arguments

z

Zero, a vector or single row matrix

p

Pole, a vector or single row matrix

k

Gain, a vector

Value

Returns a list object of 'ss' class.

Details

zp2ss converts a system represented in zero-pole form to state-space by converting from zero-pole to transfer function and from transfer functon to state-space

Another possible usage is: zp2ss(sys)

where sys is an object of zero-pole-gain model.

See Also

ss2zp zp2tf

Examples

Run this code
# NOT RUN {
zp2ss(NULL, c(-1,-1), 1)
zp2ss(tf2zp(c(1,1,1), c(1,2,1)))

# }

Run the code above in your browser using DataLab