Documentation Center

  • Trial Software
  • Product Updates

Create HTML Reports with cvhtml

Once you run a test in simulation with cvsim, results are saved to cv.cvdatagroup or cvdata objects in the base MATLAB® workspace. Use the cvhtml command to create an HTML report of these objects.

The following command creates an HTML report of the coverage results in the cvdata object cvdo. The results are written to the file file in the current MATLAB folder.

cvhtml(file, cvdo)

The following command creates a combined report of several cvdata objects:

cvhtml(file, cvdo1, cvdo2, ...)

The results from each object are displayed in a separate column of the HTML report. Each cvdata object must correspond to the same root model or subsystem, or the function produces errors.

You can specify the detail level of the report with the value of detail, an integer between 0 and 3:

cvhtml(file, cvdo1, cvdo2,..., detail)

Higher numbers for detail indicate greater detail. The default value is 2.

Was this topic helpful?