MATLAB 帮助中心
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
expand 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.
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处