Contenido principal

setHeading

Specify title for table

    Description

    setHeading(tableObj,titleText) adds the title specified by titleText to the Model Advisor table object, tableObj.

    Note

    The function setHeading is for formatting tables in Model Advisor analysis results with Simulink® Check™. For more information, see Simulink Check.

    For information on how to use tables in MATLAB®, see Create Tables and Assign Data to Them.

    example

    Examples

    collapse all

    This example shows how to create a Model Advisor table object and add heading to the table.

    Use ModelAdvisor.Table to create a Model Advisor table object with two rows and three columns.

    table1 = ModelAdvisor.Table(2,3);
    

    Add title to the table.

    setHeading(table1,'Title of New Table');

    For more information on how to format check results, see Define Custom Model Advisor Checks.

    Input Arguments

    collapse all

    Table of Model Advisor results, specified as a ModelAdvisor.Table object.

    Title heading, specified as a character vector, ModelAdvisor.Element object, or ModelAdvisor.Element object array.

    Example: 'Title 1'

    Version History

    Introduced in R2006b