User`s guide

Table Of Contents
drmodel, drss
11-62
11drmodel, drss
Purpose Generate stable random discrete test models
Syntax sys = drss(n)
sys = drss(n,p)
sys = drss(n,p,m)
sys = drss(n,p,m,s1,...sn)
[num,den] = drmodel(n)
[A,B,C,D] = drmodel(n)
[A,B,C,D] = drmodel(n,p,m)
Description sys = drss(n) produces a random n-th o rder 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 ord e r st able m ode l with one input a nd p
outputs.
drss(n,m,p) generates a random n-th order stable model with m inputs a nd p
outputs.
drss(n,p,m,s1,...sn) generates a s1–by– sn array of random n-th or der
stable model with
m inputs and p outputs.
In a ll cases, the discrete-time state-space model or array returned by
drss has
an unsp ecifi ed samp ling ti me. To generate tr ansfer function o r zero -p ole-g ain
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 denomina tor den o r the state-space
matrices
A,B,C,andD, basedonthenumber ofoutputa rguments.The resulting
model always has one input a nd 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.