zpkdata: Retrieve zero-pole data from LTI system object

Description Usage Arguments Details Value See Also Examples

Description

zpkdata retrieves the model for a zero-pole-gain system from a sys object

Usage

1
zpkdata(sys1)

Arguments

sys1

an LTI system object of tf, ss or zpk classes

Details

zpkdata retrieves a model object for a zero-pole-gain system, from a sys object of tf, ss and zpk classes

Value

Returns a list object of zpk class containing zero, pole and gain matrices. For multivariable systems, the zeros of each system is listed as a column in the zeros matrix, the poles are listed as a column-vector as well as the gain

See Also

zpk tfdata ssdata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
sys1 <- zpk(NULL, c(-1,-1), 1)
zpkdata(sys1)
sys3 <- tf(c(1), c(1,2,1))
zpkdata(sys3)

## Not run:   MIMO system of 2-inputs and 2-outputs 
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))
zpkdata(ss(A,B,C,D))

## OR
syszp <- zpkdata(ss(A,B,C,D))
syszp[[1]]
syszp[[2]]
syszp[[1]]$z # retrieve zeros of system 1 - Input 1 to Outputs 1 and 2
syszp[[2]]$z # retrieve zeros of system 2 - Input 2 to Outputs 1 and 2

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