setListObj
向模型对象添加超链接的列表
语法
setListObj(ft_obj, {model_obj})
说明
setListObj( 是一个可选方法,它生成指向模型对象的超链接的项目符号列表。ft_obj, {model_obj}) 是列表模板对象的句柄。ft_obj 是指向模块或模型对象的句柄或完整路径的元胞数组,模型顾问在报告中将其显示为超链接的项目符号列表。model_obj
示例
创建一个列表对象 ft,并添加在模型中找到的模块的列表:
ft = ModelAdvisor.FormatTemplate('ListTemplate');
% Find all the blocks in the system
allBlocks = find_system(system);
% Add the blocks to a list
setListObj(ft, allBlocks);