Categories &

Functions List

Function Reference: @lti/connect

Function File: sys = connect (sys1, sys2, …, sysN, inputs, outputs)
Function File: sys = connect (sys, cm, inputs, outputs)

Name-based or index-based interconnections between the inputs and outputs of LTI models.

Inputs

sys1, …, sysN

LTI models to be connected. The properties ’inname’ and ’outname’ of each model should be set according to the desired input-output connections.

inputs

For name-based interconnections, string or cell of strings containing the names of the inputs to be kept. The names must be part of the properties ’ingroup’ or ’inname’. For index-based interconnections, vector containing the indices of the inputs to be kept.

outputs

For name-based interconnections, string or cell of strings containing the names of the outputs to be kept. The names must be part of the properties ’outgroup’ or ’outname’. For index-based interconnections, vector containing the indices of the outputs to be kept.

cm

Connection matrix (not name-based). Each row of the matrix represents a summing junction. The first column holds the indices of the inputs to be summed with outputs of the subsequent columns. The output indices can be negative, if the output is to be substracted, or zero. For example, the row

 
 [2 0 3 -4 0]
 

or

 
 [2 -4 3]
 

will sum input u(2) with outputs y(3) and y(4) as

 
 u(2) + y(3) - y(4).
 

Outputs

sys

Resulting interconnected system with outputs outputs and inputs inputs.

See also: sumblk

Source Code: @lti/connect