Check lines of code in MATLAB Functions
Guideline: na_0016: Source lines of MATLAB Functions
Identify MATLAB Functions with high number of effective lines of code.
This check requires a Simulink® Check™ license.
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
extension in the analysis.
Results and Recommended Actions
|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
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
Allows exclusions of blocks or charts.