getEntry
从模型顾问分析结果的表中获取单元格内容
说明
示例
获取模型顾问结果表中单元格的内容
创建一个模型顾问表对象,并获取第三行第四列中单元格的内容。
使用 ModelAdvisor.Table
创建一个具有四行四列的模型顾问表对象。
T1 = ModelAdvisor.Table(4,4);
从模型顾问表对象的第三行第四列的单元格中获取单元格内容。
content = getEntry(T1,3,4);
在 sl_customization
文件的检查回调函数中使用 getEntry
从模型顾问结果中获取表单元格内容。
有关详细信息,请参阅定义自定义模型顾问检查。
输入参数
tableObj
— 模型顾问表对象
ModelAdvisor.Table
对象
模型顾问结果的表,指定为 ModelAdvisor.Table
对象。
row
— 表行
整数
表的行,指定为整数。
column
— 表列
整数
表的列,指定为整数。
输出参量
cellEntry
— 表单元格的内容
元素对象 | 对象数组
表单元格的内容,指定为元素对象或对象数组。
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)