Simulink Control Design™ - MathWorks

(Tuis.) #1

which returns


(1.) magball/Controller/PID Controller/Filter
x: 0
(2.) magball/Controller/PID Controller/Integrator
x: 14
(3.) magball/Magnetic Ball Plant/Current
x: 7
(4.) magball/Magnetic Ball Plant/dhdt
x: 0
(5.) magball/Magnetic Ball Plant/height
x: 0.05


To extract a vector of state values, with the states in an ordering that is compatible with
Simulink, along with inputs and a state structure, type:


[x,u,xstruct]=getxu(op)


This syntax returns:


x =


0.0500
0
14.0071
7.0036
0


u =


[]


xstruct =


time: 0
signals: [1x5 struct]


View xstruct in more detail by typing:


xstruct.signals


This syntax displays:


getxu
Free download pdf