Simulink.MaskParameter.Behavior Class
R2026bNamespace: Simulink.MaskParameter
Description
Use a Simulink.MaskParameter.Behavior object to set properties that
control mask parameter behavior.
Properties
Option to evaluate the mask parameter, specified as "on or
"off".
Option to decide the tunable behavior of a mask parameter, specified as
"on" or "off" or
"run-to-run". The available options are:
"on"— Enables changes to the mask parameter value during simulation. Each time you make a change, the model recompiles."off"— Disables changes to the mask parameter values during simulation."run-to-run"— Allows changes to the mask parameter value between simulation runs. Simulink® applies the changes when the simulation restarts but does not reflect them during an active simulation.
Data Types: char | string
Option to edit the mask parameter value in the mask dialog box, specified as
"off or "on".
Option to hide the mask parameter value in the mask dialog box, specified as
"off or "on".
Option to save the mask parameter values in the model file, specified as
"off or "on".
"off"— Simulink saves the mask parameter value with the model."on"— Simulink does not save the mask parameter value with the model.
Option to evaluate only the custom values in a combo box, specified as
"off" or "on". This property works with
the Evaluate property to control how Simulink evaluates combo box values. Use this property only when
Evaluate is "on".
If
Evaluateis"on"andEvalOnlyCustomValuesis"on", Simulink evaluates only typed custom values in a combo box.If
Evaluateis"on"andEvalOnlyCustomValuesis"off", Simulink evaluates both predefined type options and typed custom values in a combo box.
Examples
Open the example TypesOfMaskParametersExample. Get the mask
object of the Subsystem block ComboBoxWithEvaluate and the
parameter object of the mask parameter gain.
openExample("simulink_masking/TypesOfMaskParametersExample"); maskObj = Simulink.Mask.get('slexMaskParameterOptionsExample/ComboBoxWithEvaluate'); maskParam = maskObj.getParameter('gain');
To set the properties EvalOnlyCustomValues and
Hidden to "on", use the following
commands.
maskParam.Behavior.Evaluate = "on"; maskParam.Behavior.EvalOnlyCustomValues = "on"; maskParam.Behavior.Hidden = "on";
Version History
Introduced in R2026b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)