Overall MATLAB Effective Lines of Code (eLOC)
Metric ID
slcomp.OverallMATLABeLOC
Description
Use this metric to count the total number of effective lines of MATLAB® code in a unit or component. Effective lines of MATLAB code are lines of executable code.
Supported Artifacts
You can collect this metric for:
To control what the dashboard classifies as a unit or component, see Categorize Models in Hierarchy as Components or Units.
Computation Details
The metric:
Only analyzes MATLAB code that does not contain syntax errors.
Does not consider the following to be effective lines of code:
empty lines
lines that contain only comments
lines that contain only white spaces
lines that contain only an
end
statement
Collection
To collect data for this metric, use getMetrics
with the metric
identifier slcomp.OverallMATLABeLOC
.
Results
For this metric, instances of metric.Result
return
Value
as the overall number of effective
lines of MATLAB code in a unit or component.