This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Class: ModelAdvisor.FormatTemplate
Package: ModelAdvisor

Add title to table


setTableTitle(ft_obj, title)


setTableTitle(ft_obj, title) is an optional method that adds a title to a table.

Input Arguments


A handle to a template object.


A character vector or a handle to a formatting object specifying the title of the table.

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

The title appears above the table. If you do not add data to the table, the Model Advisor does not display the table and title in the result.


Create a table object, ft, and add a table title:

ft = ModelAdvisor.FormatTemplate('TableTemplate');
setTableTitle(ft, 'Table of fonts and styles used in model');