Close the loop from specified outputs to respective specified inputs
Inputs
- sys
- System data structure.
- out_idx
- in_idx
- Names or indices of signals to connect (see
sysidx). The output specified by out_idx(ii) is connected to the input specified by in_idx(ii).- order
- logical flag (default = 0)
0- Leave inputs and outputs in their original order.
1- Permute inputs and outputs to the order shown in the diagram below.
- tol
- Tolerance for singularities in algebraic loops, default: 200
eps.Outputs
- clsys
- Resulting closed loop system.
Method
sysconnectinternally permutes selected inputs, outputs as shown below, closes the loop, and then permutes inputs and outputs back to their original order-------------------- u_1 ----->| |----> y_1 | sys | old u_2 | | u_2* ---->(+)--->| |----->y_2 (in_idx) ^ -------------------- | (out_idx) | | -------------------------------The input that has the summing junction added to it has an * added to the end of the input name.