complexityinfo
Retrieve cyclomatic complexity coverage information from cvdata
object
Syntax
Description
returns complexity coverage results from the complexity
= complexityinfo(cvdo
,modelObject
)cvdata
object
cvdo
for the model component modelObject
.
returns complexity coverage results from the complexity
= complexityinfo(cvdo
,modelObject
,simMode
)cvdata
object
cvdo
for the model component modelObject
for the
simulation mode simMode
.
Examples
Input Arguments
Output Arguments
Alternatives
Use the coverage settings to collect and display cyclomatic complexity coverage results in the coverage report:
Open the model.
In the Simulink Editor, select Model Settings on the Modeling tab.
On the Coverage pane of the Configuration Parameters dialog box, select Enable coverage analysis.
Under Coverage metrics, select MCDC as the structural coverage level.
Click OK to close the Configuration Parameters dialog box and save your changes.
Simulate the model.
In the docked Coverage Details pane, the coverage report shows the cyclomatic complexity for the model as well as each model object.
Version History
Introduced in R2011a
See Also
conditioninfo
| decisioninfo
| cvsim
| getCoverageInfo
| mcdcinfo
| sigrangeinfo
| sigsizeinfo
| tableinfo
| executioninfo
| relationalboundaryinfo
| overflowsaturationinfo