| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Verification and Validation |
| Contents | Index |
| Learn more about Simulink Verification and Validation |
cvhtml(file, cvdo)
cvhtml(file, cvdo1, cvdo2, ...)
cvhtml(file, cvdo1, cvdo2, ..., options)
cvhtml(file, cvdo1, cvdo2, ..., options,
detail)
cvhtml(file, cvdo) creates an HTML report of the coverage results in the cvdata or cv.cvdatagroup object cvdo when you run model coverage in simulation. cvhtml saves the coverage results in file. The model must be open when you usecvhtml to generate its coverage report.
cvhtml(file, cvdo1, cvdo2, ...) creates a combined report of several cvdata objects. The results from each object appear in a separate column of the HTML report. Each cvdata object must correspond to the same root model or subsystem. Otherwise, the function fails.
cvhtml(file, cvdo1, cvdo2, ..., options) creates a combined report of several cvdata objects using the report options specified by options.
cvhtml(file, cvdo1, cvdo2, ..., options, detail) creates a combined report of several cvdata objects and specifies the detail level of the report with the value of detail.
cvdo |
A cv.cvdatagroup object |
detail |
Specifies the level of detail in the report. Set detail to an integer from 0 to 3. Greater numbers for detail indicate greater detail. Default: 2 |
file |
String specifying the HTML file in the MATLAB current folder where cvhtml stores the results Default: [] | ||||||||||||||||||||||||
options |
Specify the report options that you specify in options:
The following table lists all the options:
|
Make sure you have write access to the default MATLAB directory. Create a cumulative coverage report for the slvnvdemo_cv_small_controller mode and save it as ratelim_coverage.html:
model = 'slvnvdemo_cv_small_controller'; open_system(model); cvt = cvtest(model); cvd = cvsim(cvt); outfile = 'ratelim_coverage.html'; cvhtml(outfile, cvd);
To create an HTML model coverage report:
Open the model for which you want model coverage.
In the Model Editor, select Tools > Coverage Settings.
On the Report tab of the Coverage Settings dialog box, select Generate HTML report.
Click OK.
![]() | cvexit | cvload | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |