Check nested conditions in MATLAB Functions
Checks for number of inputs/outputs to a Variant Subsystem.
This check requires a Simulink® Check™ license.
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
extension in the analysis.
Results and Recommended Actions
|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
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
Allows exclusions of blocks or charts.
JMAABv6.0 guideline mp_0016