Control System Toolbox
  Go to function:
    Search    Help Desk 
drmodel, drss    Examples   See Also

Generate stable random discrete test models

Syntax

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

Description

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

drss(n,p) produces a random n-th order stable model with one input and p outputs.

drss(n,m,p) generates a random n-th order stable model with m inputs and p outputs.

drss(n,p,m,s1,...sn) generates a s1-by-sn array of random n-th order stable model with m inputs and p outputs.

In all cases, the discrete-time state-space model or array returned by drss has an unspecified sampling time. To generate transfer function or zero-pole-gain systems, convert sys using tf or zpk.

drmodel(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, based on the number of output arguments. The resulting model always has one input and one output.

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

Example

Generate a random discrete LTI system with three states, two inputs, and two outputs.

See Also

rmodel, rss Generate stable random continuous test models

tf          Convert LTI systems to transfer functions form

zpk         Convert LTI systems to zero-pole-gain form



[ Previous | Help Desk | Next ]