Main Content

cvresults

Returns active coverage data, clears and loads active coverage data from a file

Description

[covData,cumulativeCovData] = cvresults(modelName) returns the active single-run coverage data covData and cumulative coverage data cumulativeData.

example

cvresults(modelName,'clear') clears the active coverage data.

cvresults(modelName,'load',fileName) loads the active coverage data from a .cvt file.

Examples

collapse all

  1. Simulate your model and collect coverage.

    cvsim(modelName);

  2. Get the current coverage data.

    [covData,cumulativeCovData] = cvresults(modelName);

Input Arguments

collapse all

Model name, specified as a character array or string array.

Data Types: char | string

Coverage data file name, specified as a character array or string array.

Data Types: char | string

Output Arguments

collapse all

Coverage data, returned as a cvdata object.

Data Types: cvdata

Cumulative coverage data, returned as a cvdata object.

Data Types: cvdata

Version History

Introduced in R2016a