| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Verification and Validation |
| Contents | Index |
| Learn more about Simulink Verification and Validation |
Add column titles to table
setColTitles(ft_obj, {col_title_1, col_title_2, ...})
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.
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. |
Create a table object, ft, and specify two column titles:
ft = ModelAdvisor.FormatTemplate('TableTemplate');
setColTitle(ft, {'Index', 'Block Name'});| Customizing the Model Advisor — Describes how to create custom checks |
| Formatting Model Advisor Results — Describes how to format Model Advisor results |
![]() | setColSpan (ModelAdvisor.InputParameter) | setColWidth (ModelAdvisor.Table) | ![]() |

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 |