control.matlab.append

control.matlab.append(sys1, sys2[, ..., sysn])[source]

Group LTI models by appending their inputs and outputs.

Forms an augmented system model, and appends the inputs and outputs together.

Parameters:
sys1, sys2, …, sysnscalar, array, or LTI

I/O systems to combine.

Returns:
outLTI

Combined system, with input/output vectors consisting of all input/output vectors appended. Specific type returned is the type of the first argument.

Other Parameters:
inputs, outputsstr, or list of str, optional

List of strings that name the individual signals. If not given, signal names will be of the form ‘s[i]’ (where ‘s’ is one of ‘u’, or ‘y’). See InputOutputSystem for more information.

statesstr, or list of str, optional

List of names for system states. If not given, state names will be of of the form ‘x[i]’ for interconnections of linear systems or ‘<subsys_name>.<state_name>’ for interconnected nonlinear systems.

namestring, optional

System name (used for specifying signals). If unspecified, a generic name ‘sys[id]’ is generated with a unique integer id.

See also

interconnect, feedback, negate, parallel, series

Examples

>>> G1 = ct.rss(3)
>>> G2 = ct.rss(4)
>>> G = ct.append(G1, G2)
>>> G.ninputs, G.noutputs, G.nstates
(2, 2, 7)
>>> G1 = ct.rss(3, inputs=2, outputs=4)
>>> G2 = ct.rss(4, inputs=1, outputs=4)
>>> G = ct.append(G1, G2)
>>> G.ninputs, G.noutputs, G.nstates
(3, 8, 7)