Documentation Center

  • Trial Software
  • Product Updates

getParameter

Class: Simulink.Mask
Package: Simulink

Get a mask parameter using its name

Syntax

p = Simulink.Mask.get(blockName)
param = p.getParameter(paramName)

Description

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

param = p.getParameter(paramName) 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.

paramName

The name of the parameter you want to get.

Examples

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

    p = Simulink.Mask.get('myModel/Subsystem');
  2. Get a mask parameter by using its name.

    param = p.getParameter('intercept');

See Also

Was this topic helpful?