sysprune [control]
— Function File: retsys = sysprune (asys, out_idx, in_idx)

Extract specified inputs/outputs from a system

Inputs

asys
system data structure
out_idx
in_idx
Indices or signal names of the outputs and inputs to be kept in the returned system; remaining connections are “pruned” off. May select as [] (empty matrix) to specify all outputs/inputs.
               retsys = sysprune (Asys, [1:3,4], "u_1");
               retsys = sysprune (Asys, {"tx", "ty", "tz"}, 4);

Output

retsys
Resulting system.
          ____________________
          u1 ------->|                  |----> y1
          (in_idx)  |       Asys       | (out_idx)
          u2 ------->|                  |----| y2
          (deleted)-------------------- (deleted)