Creating and Manipulating Models | ![]() ![]() |
Extracting LTI Arrays of Subsystems
To select a particular subset of I/O channels from all the models in an LTI array, use the syntax described in "Extracting and Modifying Subsystems" on page 3-5. For example,
sys = rss(4,3,2,5,2); A = sys(1, [1 2])
A = sys(1,[1 2],:,:)
selects the first two input channels, and the first output channel in each model of the LTI array A
, and returns the resulting 5-by-2 array of one-output, two-input subsystems.
You can also combine model selection with I/O selection within an LTI array. For example, to access both:
(3,2)
array positionsys(1,2,3,2)
To access the subsystem from all inputs to the first two output channels of this same array entry, type
sys(1:2,:,3,2)
![]() | Accessing Particular Models in an LTI Array | Reassigning Parts of an LTI Array | ![]() |