MATLAB: Can I save the model coverage highlighting produced by Simulink Verification and Validation 2.1 (R2007a)

analysiscolorcoloringcolorscolouringcvloadcvsavedisplayhighlighthiliteinformerkeeploadprofileprofilerSimulink CheckSimulink Coveragevnvwindow

I have turned on the 'Display coverage results using model coloring' option and 'Enabled Coverage Reporting' in Simulink Verification and Validation. This causes the model to be colored indicating what parts of the model have (green) and have not executed (red).
Is it possible to save this colored model so that when I open it again the colors are still visible?

Best Answer

The ability to save the coverage color information with the model itself is not available in Simulink.
To work around this you can save the CVDATA structure that is produced by the Profiler (by default it is a variable called "covdata" in the workspace), then you can re-highlight your model using the CVMODELVIEW function, with the following command:
cvmodelview(covdata)
There is an example in the documentation of the function CVMODELVIEW for doing this.