connectByNames

Method of mdss.

Connect signals of an mdss model by matching signal names.

Source: src/model/@mdss/connectByNames.m

Syntax

sys = connectByNames(sys)

Description

connectByNames builds the connection matrices automatically from signal names and then calls connectByIndices. Submodels must already be combined with append before connecting.

The rules are:

Names must be unique among outputs: if two states, two algebraics, two binaries, or two connected outputs share a name, an error is raised. If no input name matches any signal name, a warning is issued and the model is returned unchanged.

Input arguments

Argument Description
sys The appended mdss model whose connected signals share names (e.g. sys.stateName(i) == sys.inputName(j)).

Output arguments

Output Description
sys The model with all name-matched signals connected.

Example

sys = connectByNames(sys);

See also

mdss · connectByIndices · connect · append


MyToolbox Documentation | Generated automatically by CI/CD pipeline