MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
在模型顾问分析结果中添加模型对象的超链接列表
setListObj(ftObj,modelObj)
setListObj(ftObj,modelObj) 是一个可选方法,它生成一个指向由模型顾问格式化对象 ftObj 创建的报表中的模型对象的超链接列表。modelObj 输入将列表项指定为句柄的元胞数组或块或模型对象的完整路径。
ftObj
modelObj
示例
全部折叠
此示例展示了如何在模型顾问结果中添加带项目符号的超链接列表。
创建格式化模板对象。
ft = ModelAdvisor.FormatTemplate("ListTemplate");
打开 vdp 模型。
vdp
open_system("vdp");
找到模型中的所有积木。
allBlocks = find_system("vdp","Type","block");
模块路径添加为列表模板中的超链接。在模型顾问报告中,每个模块路径都显示为可点击的超链接。点击超链接会高亮显示模型中的相应模块。
setListObj(ft,allBlocks);
显示超链接模块的结果。
ResultDescription = {}; ResultDescription{end+1} = ft; disp("Blocks added as hyperlinks in the list template:");
Blocks added as hyperlinks in the list template:
disp(allBlocks);
{'vdp/Callback Button'} {'vdp/Constant' } {'vdp/Mu' } {'vdp/Product' } {'vdp/Scope' } {'vdp/Square' } {'vdp/Sum' } {'vdp/Sum1' } {'vdp/x1' } {'vdp/x2' } {'vdp/Out1' } {'vdp/Out2' }
ModelAdvisor.FormatTemplate
ModelAdvisor.FormatTemplate 对象,指定为格式化模板的句柄。
将模型对象显示为超链接的列表,指定为模块句柄的元胞数组、完整路径名(字符向量)或模型对象句柄。元胞数组中项目的顺序决定了超链接在列表中的显示顺序。
示例: {"vdp/Gain","vdp/Sum"}
{"vdp/Gain","vdp/Sum"}
在 R2009a 中推出
自定义模型顾问配置概述
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处