A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-control.readthedocs.io/en/stable/generated/control.matlab.connect.html below:

control.matlab.connect — Python Control Systems Library 0.10.2 documentation

Python Control Systems Library control.matlab.connect
control.matlab.connect(sys, Q, inputv, outputv)[source]

Index-based interconnection of an LTI system.

The system sys is a system typically constructed with append, with multiple inputs and outputs. The inputs and outputs are connected according to the interconnection matrix Q, and then the final inputs and outputs are trimmed according to the inputs and outputs listed in inputv and outputv.

NOTE: Inputs and outputs are indexed starting at 1 and negative values correspond to a negative feedback interconnection.

Parameters:
sysInputOutputSystem

System to be connected.

Q2D array

Interconnection matrix. First column gives the input to be connected. The second column gives the index of an output that is to be fed into that input. Each additional column gives the index of an additional input that may be optionally added to that input. Negative values mean the feedback is negative. A zero value is ignored. Inputs and outputs are indexed starting at 1 to communicate sign information.

inputv1D array

List of final external inputs, indexed starting at 1.

outputv1D array

List of final external outputs, indexed starting at 1.

Returns:
outInputOutputSystem

Connected and trimmed I/O system.

Examples

>>> G = ct.rss(7, inputs=2, outputs=2)
>>> K = [[1, 2], [2, -1]]  # negative feedback interconnection
>>> T = ct.connect(G, K, [2], [1, 2])
>>> T.ninputs, T.noutputs, T.nstates
(1, 2, 7)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4