Main Content

extract

Extract subsystem coverage data from system-level coverage data

Description

example

excvd = extract(cvdo,subsystem) extracts coverage data for subsystem from system-level coverage data cvdo.

Examples

collapse all

Record coverage data for the sf_car model.

model = 'sf_car'
open(model)
cvdo = cvsim(model);

Extract the coverage data for the shift_logic subsystem from the coverage data from the top-level model sf_car.

excvd = extract(cvdo,'sf_car/shift_logic');

Create a coverage report from the extracted coverage data.

cvhtml('tmp', excvd)

Input Arguments

collapse all

System-level coverage data object from a top-level model, specified as an object.

Data Types: object

Full name or path of a subsystem in an open or loaded Simulink model, specified as a character vector.

Data Types: character vector

Output Arguments

collapse all

Coverage data object for a subsystem extracted from a Simulink model, returned as an object.

Introduced in R2019b