Main Content

Simulink.Mask.numParameters

Display number of parameters in a mask

Description

example

maskobj.numParameters returns the number of parameters in the mask.

To get the mask object for the mask on a block named BlockName, use this command.

maskobj = Simulink.Mask.get("BlockName")

Examples

collapse all

  1. Get mask object using block path.

    maskobj = Simulink.Mask.get('myModel/Subsystem');
  2. Get the number of parameters in the mask.

    maskobj.numParameters;
    ans =
    
        13
    

Version History

Introduced in R2014a