MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
在模型顾问分析结果中添加检查的描述
setCheckText(ftObj,text)
setCheckText(ftObj,text) 是一个可选方法,用于在由格式化模板对象 ftObj 生成的报告开头插入描述性内容。使用此方法可以添加解释性文本或模型顾问模板对象,以总结或描述整体检查。
ftObj
text
示例
全部折叠
此示例展示了如何在模型顾问结果的开头添加摘要描述。
Create a formatting template object.
ft = ModelAdvisor.FormatTemplate("TableTemplate");
Add descriptive text at the beginning of the report.
setCheckText(ft,"This table lists all blocks in the model 'vdp'.");
Set the table title and column titles.
setTableTitle(ft,{"Blocks in Model"}); setColTitles(ft,{"Index","Block Name"});
Open the model and find all blocks.
openExample("vdp")
allBlocks = find_system("vdp");
Add each block to the table.
for idx = 2:length(allBlocks) addRow(ft,{idx-1, allBlocks(idx)}); end
ModelAdvisor.FormatTemplate
ModelAdvisor.FormatTemplate 对象,指定为格式化模板的句柄。
报告开头要显示的信息。请将其指定为包含描述性文本的字符向量或字符串标量。
示例: ["Identify unconnected lines","Item 2"]
["Identify unconnected lines","Item 2"]
在 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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处