extract - Extract subsystem coverage data from system-level coverage data - MATLAB (original) (raw)

Main Content

Extract subsystem coverage data from system-level coverage data

Syntax

Description

[excvd](#mw%5F0dfbbda0-72d4-469e-9ab5-8573df3ebe80) = extract([cvdo](#mw%5F0afebe3f-bc55-44cc-a42e-4f24dec63ee6),[subsystem](#mw%5F68b772b2-f0b6-4143-b4c0-6a7edfb68d4d)) extracts coverage data for subsystem from system-level coverage datacvdo.

example

Examples

collapse all

Record coverage data for the sf_car model.

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.

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

Create a coverage report from the extracted coverage data.

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.

Version History

Introduced in R2019b

expand all

You can use extract to extract the coverage data for a subsystem.