Simulink Control Design™ - MathWorks

(Tuis.) #1
The linear systems are logged in a structure with time and values fields.

LinearAircraft

LinearAircraft =

struct with fields:

time: [17x1 double]
values: [1x1x17x1 ss]
blockName: 'scdaircraft/Check Gain and Phase Margins'
assertionValue: [17x1 logical]

The values field stores the linear systems as an array of LTI state-space systems (see
Arrays of LTI Models) in Control System Toolbox documentation for more information).

You can retrieve the individual systems by indexing into the values field.

L = LinearAircraft.values(:,:,17)

L =

A =
scdaircraft/ scdaircraft/ scdaircraft/
scdaircraft/ -0.01122 0 0
scdaircraft/ -0.01184 0 0
scdaircraft/ 0.7492 0 -0.4326

B =
Velocity Con
scdaircraft/ 0.3774
scdaircraft/ 0
scdaircraft/ 0

C =
scdaircraft/ scdaircraft/ scdaircraft/
Velocity Con -1.998e-15 1 -0.4326

D =
Velocity Con
Velocity Con 0

14 Model Verification

Free download pdf