Categories &

Functions List

Function Reference: @lti/mconnect

Function File: sys = mconnect (sys, m)
Function File: sys = mconnect (sys, m, inputs, outputs)

Arbitrary interconnections between the inputs and outputs of an LTI model.

Inputs

sys
LTI system.
m
Connection matrix. Each row belongs to an input and each column represents an output.
inputs
Vector of indices of those inputs which are retained. If not specified, all inputs are kept.
outputs
Vector of indices of those outputs which are retained. If not specified, all outputs are kept.

Outputs

sys
Interconnected system.

Example

 
 Solve the system equations of
 y(t) = G e(t)
 e(t) = u(t) + M y(t)
 in order to build
 y(t) = H u(t)
 The matrix M for a (p-by-m) system G
 has m rows and p columns (m-by-p).

 Example for a 3x2 system:
 u1 = -1*y1 + 5*y2 + 0*y3
 u2 = pi*y1 + 0*y2 - 7*y3

     | -1      5      0 |
 M = | pi      0      7 |

Source Code: @lti/mconnect