Extract subsystem coverage data from system-level coverage data
Record coverage data for the
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
excvd = extract(cvdo,'sf_car/shift_logic');
Create a coverage report from the extracted coverage data.
cvdo— System-level coverage data object
System-level coverage data object from a top-level model, specified as an object.
subsystem— Subsystem in a Simulink® model
Full name or path of a subsystem in an open or loaded Simulink model, specified as a character vector.
excvd— Extracted coverage data object
Coverage data object for a subsystem extracted from a Simulink model, returned as an object.