www.gusucode.com > control 案例程序 matlab源码代码 > control/GenerateStateSpaceModelsExample.m

    %% Generate State-Space Models
%%
% Generate a random SISO state-space model with two states.
sys2 = rss(2)
%%
% Generate a model with four states, three outputs, and two inputs. The
% input arguments to |rss| are arranged in the order states, outputs,
% inputs.
sys4 = rss(4,3,2)