|
|
|
| R2012a Documentation → Simulink Verification and Validation | |
Learn more about Simulink Verification and Validation |
|
| Contents | Index |
Simulink Verification and Validation provides commands that allow you to retrieve specific coverage information from the cvtest object after you have simulated your model and recorded coverage. Use these commands to retrieve the specified coverage information for a block, subsystem, or Stateflow chart in your model or for the model itself:
complexityinfo — Cyclomatic complexity coverage
conditioninfo — Condition coverage
decisioninfo — Decision coverage
mcdcinfo — Modified condition/decision (MCDC) coverage
sigrangeinfo — Signal range coverage
sigsizeinfo — Signal size coverage
tableinfo — Lookup Table block coverage
getCoverageinfo — Coverage for Simulink Design Verifier blocks
The basic format of these functions is:
coverage = <coverage_type_prefix>info = (cvdata_object, object, ignore_descendants)
coverage — Multipart vector containing the retrieved coverage results for object
cvdata_object — cvdata object that you create when you call cvtest
object — Handle to a model or object in the model
ignore_descendants — Flag to ignore coverage results in subsystems, referenced models, and Stateflow charts
![]() | Running Tests with cvsim | Creating Cumulative Coverage for Reusable Subsystems and Stateflow Constructs | ![]() |

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