Check nested conditions in MATLAB Functions
Check ID:
mathworks.jmaab.na_0018
Guideline:
Description
Checks for number of inputs/outputs to a Variant Subsystem.
This check requires a Simulink® Check™ license.
Check Parameterization
This check does not include sub-checks because the MAB modeling guideline provides only one sub ID.
For reference, the MAB guideline sub ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:
NA-MAAB — a
JMAAB — a
Under Input Parameters, select Check external .m files
referenced in the model to include files with a .m
extension in the analysis.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
One or more MATLAB Function found with deeply nested if/else and case statements. | Remodel to reduce the number of deeply nested conditional statements. |
Capabilities and Limitations
This check also implements the JMAAB v6.0 guideline: mp_0016
Runs on library models.
Analyzes content of library linked blocks. By default, the input parameter Follow links is set to
on
.Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
all
.Allows exclusions of blocks or charts.
See Also
JMAABv6.0 guideline mp_0016