complexityinfo
Retrieve cyclomatic complexity coverage information fromcvdata
object
Syntax
Description
returns complexity coverage results from thecomplexity
= complexityinfo(cvdo
,modelObject
)cvdata
objectcvdo
for the model componentmodelObject
.
returns complexity coverage results from thecomplexity
= complexityinfo(cvdo
,modelObject
,simMode
)cvdata
objectcvdo
for the model componentmodelObject
for the simulation modesimMode
.
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, selectModel Settingson theModelingtab.
On theCoveragepane of the Configuration Parameters dialog box, selectEnable coverage analysis.
Under覆盖率度量中,选择MCDCas the structural coverage level.
ClickOKto close the Configuration Parameters dialog box and save your changes.
Simulate the model.
In the dockedCoverage Detailspane, the coverage report shows the cyclomatic complexity for the model as well as each model object.