allEquationScalarIndices

Method of mss.

Test whether both equation index vectors of the model hold a single row.

Source: src/model/@mss/allEquationScalarIndices.m

Syntax

result = allEquationScalarIndices(sys)

Description

allEquationScalarIndices returns true only when both equation index vectors — stateEquationIndex and outputEquationIndex — are scalars.

It is a predicate helper used by the mss constructor, not something the user normally calls.

Note: The two scalars are ambiguous, they can either be genuine one-row index vectors, or the counts amountStateEquation / amountOutputEquations written in positional form. The constructor resolves the ambiguity by combining this predicate with a size check against the parameter matrix — if the two scalars add up to the number of parameter-matrix rows, they are counts and are expanded into the sequential index vectors.

Input arguments

Argument Description
sys The mss model.

Output arguments

Output Description
result Logical scalar, true if stateEquationIndex and outputEquationIndex are both scalar.

See also

mss · allSignalScalarIndices · checkIndexDimensions


MyToolbox Documentation | Generated automatically by CI/CD pipeline