Help CenterHelp Center
Extract subsystem coverage data from system-level coverage data
excvd = extract(cvdo,subsystem)
excvd = extract(cvdo,subsystem) extracts coverage data for subsystem from system-level coverage data cvdo.
excvd
cvdo
subsystem
example
collapse all
Record coverage data for the sf_car model.
sf_car
model = 'sf_car' openExample(model) load_system(model) cvdo = cvsim(model);
Extract the coverage data for the shift_logic subsystem from the coverage data from the top-level model sf_car.
shift_logic
excvd = extract(cvdo,'sf_car/shift_logic');
Create a coverage report from the extracted coverage data.
cvhtml('tmp', excvd)
System-level coverage data object from a top-level model, specified as an object.
Data Types: object
object
Full name or path of a subsystem in an open or loaded Simulink model, specified as a character vector.
Data Types: character vector
character vector
Coverage data object for a subsystem extracted from a Simulink model, returned as an object.
expand all
You can use extract to extract the coverage data for a subsystem.
extract
cv.cvdatagroup | cvhtml | cvsim
cv.cvdatagroup
cvhtml
cvsim
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office