Control System Toolbox
  Go to function:
    Search    Help Desk 
rmodel, rss    Examples   See Also

Generate stable random continuous test models

Syntax

sys = rss(n,p,m,s1,...,sn)

Description

rss(n) produces a stable random n-th order model with one input and one output and returns the model in the state-space object sys.

rss(n,p) produces a random nth order stable model with one input and p outputs, and rss(n,m,p) produces a random n-th order stable model with m inputs and p outputs. The output sys is always a state-space model.

rss(n,p,m,s1,...,sn)produces an s1-by-...-by-sn array of random n-th order stable state-space models with m inputs and p outputs.

Use tf, frd, or zpk to convert the state-space object sys to transfer function, frequency response, or zero-pole-gain form.

rmodel(n) produces a random n-th order stable model and returns either the transfer function numerator num and denominator den or the state-space matrices A, B, C, and D, depending on the number of output arguments. The resulting model always has one input and one output.

[A,B,C,D] = rmodel(n,m,p) produces a stable random nth order state-space model with m inputs and p outputs.

Example

Obtain a stable random continuous LTI model with three states, two inputs, and two outputs by typing

See Also

drmodel, drss  Generate stable random discrete test models

frd         Convert LTI systems to frequency response form

tf          Convert LTI systems to transfer function form

zpk         Convert LTI systems to zero-pole-gain form



[ Previous | Help Desk | Next ]