Main Content

Simulink.Mask.numParameters

Display number of parameters in a mask

Description

example

maskobj = Simulink.Mask.get(blockName) gets the mask on the block specified by blockName as a mask object.

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

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
    

Input Arguments

collapse all

The handle to the block or the path to the block inside the model specified as a character vector.

Data Types: char | string

Version History

Introduced in R2014a