This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Handling Large Number of Mask Parameters

The Table control in Mask Editor dialog box allows you to organize large number of mask parameters. The Table control can handle large (500+) number of mask parameters. You can include Edit, Checkbox, and Popup parameters within a Table.

You can also add large number of mask parameters in a Table programmatically. An example follows,

% Get mask object.
aMaskObj = Simulink.Mask.get(gcbh); 

% Add Table controls to the mask. 
aMaskObj.addDialogControl('Table', 'MyTable');

% Add parameters to table container.
for i = 1:length(Parameters) % To import values from an array called 'Parameters'
    aMaskObj.addParameter('Name', Parameters(i).Name, 'Type', Parameters(i).Type, 'Container', 'MyTable');    
end 

Related Topics