numParameters

Class: Simulink.Mask
Package: Simulink

Determine the number of parameters in a mask

Syntax

p = Simulink.Mask.get(blockName)
p.numParameters

Description

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

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

Input Arguments

blockName

The handle to the block or the path to the block inside the model.

Examples

  1. Get mask as an object using a masked block’s path.

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

    p.numParameters;