Main Content

getEntry

Get cell contents from table in Model Advisor analysis results

    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

    Create a Model Advisor table object and get the content of a cell in 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.

    Row of the table, specified by an integer.

    Column of the table, specified by an integer.

    Output Arguments

    collapse all

    Table cell content, specified by an element object or object array.