This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Customization and Automation

Customize and automate model coverage collection

Using model coverage commands lets you automate the entire model coverage process with MATLAB® scripts. You can use model coverage commands to set up model coverage tests, execute them in simulation, and store and report the results.


cv.cvdatagroup Collection of cvdata objects


complexityinfo Retrieve cyclomatic complexity coverage information from cvdata object
conditioninfo Retrieve condition coverage information from cvdata object
cvexit Exit model coverage environment
cvhtml Produce HTML report from model coverage objects
cvload Load coverage tests and stored results into memory
cvmodelview Display model coverage results with model coloring
cvresults Returns active coverage data, clears and loads active coverage data from a file
cvsave Save coverage tests and results to file
cvsim Simulate and return model coverage results for test objects
cvtest Create model coverage test specification object
decisioninfo Retrieve decision coverage information from cvdata object
executioninfo Retrieve execution coverage information from cvdata object
getCoverageInfo Retrieve coverage information for Simulink Design Verifier blocks from cvdata object
mcdcinfo Retrieve modified condition/decision coverage information from cvdata object
overflowsaturationinfo Retrieve saturation on integer overflow coverage from cvdata object
relationalboundaryinfo Retrieve relational boundary coverage from cvdata object
sigrangeinfo Retrieve signal range coverage information from cvdata object
sigsizeinfo Retrieve signal size coverage information from cvdata object
tableinfo Retrieve lookup table coverage information from cvdata object


Create Tests with cvtest

Create a test object that specifies the model or part of the model tested.

Run Tests with cvsim

Execute (simulate) the test object. This creates a results object for the test object.

Create HTML Reports with cvhtml

Create a report for the results object.

Save Test Runs to File with cvsave

Save the test object and its results object in a file.

Load Stored Coverage Test Results with cvload

Load the file containing test and results objects to create new reports of model coverage data.

Retrieve Coverage Details from Results

Retrieve specific coverage information after simulation using MATLAB commands.

Use Coverage Commands in a Script

Example script that demonstrates how to use the model coverage commands.

Was this topic helpful?