Main Content

numParameters

Class: Simulink.Mask
Namespace: Simulink

Display number of parameters in a mask

Description

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")

example

Examples

expand 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