Check lines of code in MATLAB Functions
Check ID:
mathworks.jmaab.na_0016
Guideline: na_0016: Source lines of MATLAB Functions
Description
Identify MATLAB Functions with high number of effective lines of code.
This check requires a Simulink® Check™ license.
Check Parameterization
This check does not include sub-checks because the MAB modeling guideline only provides 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 — Not Supported
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 Functions have many effective lines of code. | Remodel to reduce the number effective lines of code per MATLAB Function. |
Capabilities and Limitations
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.