Contenido principal

setTableInfo

Add data to table in Model Advisor analysis results

Description

setTableInfo(ftObj,data) is an optional method that displays the content of a table in the report generated by the Model Advisor formatting object ftObj. Use data to specify the information shown in the body of the table, as a cell array of character vectors or objects. The Model Advisor automatically creates hyperlinks to referenced objects in the table. If you do not provide data, the table is not displayed in the result.

Note

Before creating a table, you must specify column titles using the setColTitle method.

example

Examples

collapse all

This example shows how to display table content in a Model Advisor results by setting column titles and table information using a formatting object.

Create a table formatting object.

ft = ModelAdvisor.FormatTemplate("TableTemplate");

Set the column titles for the table.

setColTitles(ft,{"Index","Block Name"});

Set the table content.

setTableInfo(ft,{"1","Gain"});

Input Arguments

collapse all

ModelAdvisor.FormatTemplate object, specified as a handle to the formatting template.

Cell array in which each element is a character vector or an object that specifies the content displayed in the table.

Example: {"1","Gain"}

Version History

Introduced in R2009a