Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

setColTitles - Class: ModelAdvisor.FormatTemplate
Package: ModelAdvisor

Add column titles to table

Syntax

setColTitles(ft_obj, {col_title_1, col_title_2, ...})

Description

setColTitles(ft_obj, {col_title_1, col_title_2, ...}) is method you must use when you create a template object that is a table type. Use it to specify the titles of the columns in the table.

Inputs

ft_obj

A handle to a template object.

col_title_N

A cell of strings or handles to formatting objects, specifying the column titles.

Valid formatting objects are: ModelAdvisor.Image, ModelAdvisor.LineBreak, ModelAdvisor.List, ModelAdvisor.Paragraph, ModelAdvisor.Table, and ModelAdvisor.Text.

The order of the col_title_N inputs determines which column the title is in. If you do not add data to the table, the Model Advisor does not display the table in the result.

Examples

Create a table object, ft, and specify two column titles:

ft = ModelAdvisor.FormatTemplate('TableTemplate');
setColTitle(ft, {'Index', 'Block Name'});

See Also

Customizing the Model Advisor — Describes how to create custom checks
Formatting Model Advisor Results — Describes how to format Model Advisor results
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS