How can I generate test coverage report of a simulink model using Matlab code

I am working in a project wich i need to generate the coverage test report using just matlab code without using simulink interface

 Accepted Answer

You can use the cvhtml function to generate a report.
Here is a simple example from the documentation:
modelName = 'slvnvdemo_cv_small_controller';
open_system(modelName);
cvd = cvsim(modelName);
outfile = 'ratelim_coverage.html';
cvhtml(outfile,cvd);

More Answers (0)

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Asked:

on 17 Mar 2023

Commented:

on 20 Mar 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!