orderstate 319
orderstateSyntax
outsys = orderstate(sys,indx)
Parameter Li st
Inputs: sys Input Dynamic System
indx Lists the desired order of the states in outsys.
Outputs: outsys output dynamic system.
Description
Reorder the states according to the index argument. The state names and initial
condition are also ordered. The input and output names, and perio d (if discrete) are
preserved.
Example
sys1 = randsys(3,1,1,{stable})
sys1 = system(sys1,{statenames=["s1";"s2";"s3"],...
x0=[0.1;0.2;0.3]})?
sys1 (a state space system) =
A
-2.27378 3.32295 -8.82005
0.65518 -5.41526 9.0643
-1.2488 4.7424 -13.2781
B
0.0879738