ss {control}R Documentation

Create State-space Model.

Description

ss creates the model for a system represented in state-space form

Usage

ss(A, B, C, D, Ts = NULL)

Arguments

A

An n x n matrix

B

An n x m matrix

C

An p x n matrix

D

An p x m matrix

Ts

Sample time for discrete time systems

Details

ss creates a model object for state-space systems.

Value

Returns a list object of 'ss' class.

See Also

tf zpk

Examples

A <- rbind(c(-2, -1), c(1,0))
B <- rbind(1,0)
C <- cbind(0,1)
D <- 0;
sys <- ss(A,B,C,D)

## Not run:   OR 

sys <- ss(c(-2,-1,1,0), c(1,0), c(0,1), 0)

## Not run:   Access individual state-space sys elements as 

sys$A
sys$B
sys$C
sys$D


[Package control version 0.2.5 Index]