Main Content

setTableCell

Class: Simulink.dialog.parameter.CustomTable
Package: Simulink.dialog.parameter

Set the properties of a custom table cell

Syntax

tableCell = tableControl.setTableCell([rowIdx colIdx], Type customtable, Evaluate, off)

Description

tableCell = tableControl.setTableCell([rowIdx colIdx], Type customtable, Evaluate, off) sets the specified properties of a cell in a custom table.

Input Arguments

expand all

Handle to the custom table, specified as an object. You can use the getDialogControl command to get the custom table handle. For more information, see getDialogControl.

Consider, for example, tableControl = maskObj.getDialogControl(TableName). Here, maskObj is the mask object and TableName is the name of the custom table.

Data Types: Numeric Array Name Value Pair

Row index number of the custom table cell for which the value is being fetched.

For example, '3'.

Column index number of the custom table cell for which the value is being fetched.

For example, '5'.

Examples

% Get block mask handle.
maskObj = Simulink.Mask.get(gcb); 

% Get custom table handle.
tableControl = maskObj.getDialogControl('myTable');

% Get cell properties.
tableCell = tableControl.setTableCell([2 2]); 

Introduced in R2019a