| 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 |
[cvtos, cvdos] = cvload(filename)
[cvtos, cvdos] = cvload(filename, restoretotal)
[cvtos, cvdos] = cvload(filename) loads the tests and data stored in the text file filename.cvt. cvtos is a cell array of cvtest objects that are successfully loaded. cvdos is a cell array of cvdata objects that are successfully loaded. cvdos has the same size as cvtos, but if a particular test has no results, cvdos can contain empty elements.
[cvtos, cvdos] = cvload(filename, restoretotal) restores or clears the cumulative results from prior runs, depending on the value of restoretotal. If restoretotal is 1, cvload restores the cumulative results from prior runs. If restoretotal is unspecified or 0, cvload clears the model's cumulative results.
The following are special considerations for using the cvload command:
If a model with the same name exists in the coverage database, the software loads only the compatible results that reference the existing model to prevent duplication.
If the Simulink models referenced from the file are open but do not exist in the coverage database, the coverage tool resolves the links to the existing models.
When you are loading several files that reference the same model, the software loads only the results that are consistent with the earlier files.
Store coverage results in cvtest and cvdata objects:
(test_objects, data_objects) = cvload(test_results, 1);
![]() | cvhtml | cvmodelview | ![]() |

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 |