SystemsModelExtract

SystemsModelExtract[sys,{in1,}]

extracts the subsystem of the systems model sys associated with inputs at position ini.

SystemsModelExtract[sys,{in1,},{out1,}]

extracts the subsystem associated with inputs and outputs at positions ini and outi, respectively.

SystemsModelExtract[sys,{in1,},{out1,},{s1,}]

extracts the subsystem of the state-space model sys associated with inputs, outputs, and states at ini, outi, and si, respectively.

Details

Examples

open allclose all

Basic Examples  (2)

Extract the subsystem associated with the first input and third output:

Extract the subsystem associated with the first two states:

Scope  (8)

Extract the subsystem associated with the first input of a three-input system:

The subsystem associated with the second output:

Extract the subsystem corresponding to the first and second inputs, and the third and fourth outputs:

Extract the subsystem associated with the second and third states of a state-space model:

The subsystem associated with the third and fourth states:

Extract the last two states of a descriptor StateSpaceModel:

Extract the first and second states of an AffineStateSpaceModel:

By default the operating points are assumed to be zero:

Extract the first input of a NonlinearStateSpaceModel:

A system with a nonzero operating point:

Applications  (4)

Rearrange the inputs of a system:

Rearrange outputs:

Rearrange states:

Use SystemsModelExtract to obtain the responses of individual subsystems of a MIMO system:

The output response to a unit step input for each subsystem:

The output response of all the subsystems:

The Nyquist plots for each subsystem:

Visualize the response of specific outputs to specific inputs for a MIMO system:

The response of the outputs to a unit step applied only to the first input:

The response of the second output to excitations in both inputs:

In some cases it is possible to extract the controllable and observable subsystems by visual observation:

Only the first three modes are controllable:

ControllableDecomposition gives the same result:

Only modes 2 and 3 are observable:

ObservableDecomposition gives the same result:

Properties & Relations  (1)

The specifications in SystemsModelExtract and SystemsModelDelete are complementary:

Introduced in 2010
 (8.0)
 |
Updated in 2014
 (10.0)