Contenido principal

getEntry

Get cell contents from table

    Description

    cellEntry = getEntry(tableObj,row,column) returns the cell content, cellEntry, for the cell specified by row and column of the Model Advisor table object, tableObj.

    Note

    The function getEntry is for returning Model Advisor analysis results with Simulink® Check™. For more information, see Simulink Check.

    For information on how to get cell contents in MATLAB®, see Access Data in Tables.

    example

    Examples

    collapse all

    This example shows how to create a Model Advisor table object and get the content of a cell from the third row and the fourth column.

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

    T1 = ModelAdvisor.Table(4,4);
    

    Get the cell content from the cell in the third row and fourth column of the Model Advisor table object.

    content = getEntry(T1,3,4);
    

    Use getEntry in a check callback function in your sl_customization file to get table cell content from your Model Advisor results.

    For more information, 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

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

    Example: 2

    Data Types: int

    Output Arguments

    collapse all

    Table cell content, specified as an ModelAdvisor.Element object or ModelAdvisor.Element object array.

    Version History

    Introduced in R2006b