Method of mdss.
Connect signals of an mdss model by matching signal
names.
Source: src/model/@mdss/connectByNames.m
sys = connectByNames(sys)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:
stateName, algebraicName and
binaryName lists. A match creates a connection between that
input and the correspondingly named state, algebraic variable or
binary.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.
| Argument | Description |
|---|---|
sys |
The appended mdss model whose connected signals share
names (e.g. sys.stateName(i) == sys.inputName(j)). |
| Output | Description |
|---|---|
sys |
The model with all name-matched signals connected. |
sys = connectByNames(sys);mdss · connectByIndices
· connect · append
MyToolbox Documentation | Generated automatically by CI/CD pipeline