Main Content

getParameter

Class: Simulink.Mask
Namespace: Simulink

Get mask parameter by name

Syntax

param = maskObj.getParameter(paramName)

Description

param = maskObj.getParameter(paramName) returns an array of mask parameters.

Input Arguments

expand all

Name of the parameter specified as a character vector or string.

Data Types: char | string

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');

Version History

Introduced in R2014a