| Control System Toolbox™ | ![]() |
sys = drss(n)
drss(n,p)
drss(n,p,m)
drss(n,p,m,s1,...sn)
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,p,m) generates a random n-th order stable model with p outputs and m inputs.
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.
Generate a random discrete LTI system with three states, four outputs, and two inputs.
sys = drss(3,4,2)
a =
x1 x2 x3
x1 0.4766 0.1102 -0.7222
x2 0.1102 0.9115 0.1628
x3 -0.7222 0.1628 -0.202
b =
u1 u2
x1 -0.4326 0.2877
x2 -0 -0
x3 0 1.191
c =
x1 x2 x3
y1 1.189 -0.1867 -0
y2 -0.03763 0.7258 0.1139
y3 0.3273 -0.5883 1.067
y4 0.1746 2.183 0
d =
u1 u2
y1 -0.09565 0
y2 -0.8323 1.624
y3 0.2944 -0.6918
y4 -0 0.858
Sampling time: unspecified
Discrete-time model.![]() | dlyapchol | dsort | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |