Contenuto principale

setRowHeading

Specify row heading for table

    Description

    setRowHeading(tableObj, row, heading) adds the heading, heading, for the specified row, row, in the Model Advisor table object tableObj.

    Note

    The function setRowHeading 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.

    Examples

    collapse all

    This example shows how to create a Model Advisor table object and add row headings.

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

    table1 = ModelAdvisor.Table(2, 3);

    Specify row headings for the two rows in the Model Advisor table object.

    setRowHeading(table1,1,'Header 1');
    setRowHeading(table1,2,'Header 2');
    

    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.

    Number of rows to create in the Model Advisor results table, specified as an integer.

    Example: 5

    Data Types: int

    Row heading title, specified by a character vector, Advisor.Element object, or Advisor.Element object array.

    Example: 'Heading 1'

    Version History

    Introduced in R2006b