Mask Callback Code - MATLAB & Simulink (original) (raw)

Main Content

Mask callback allows you to customize the behavior of mask dialog box if there is a change in the mask dialog box. For example, a certain block parameter in the mask dialog box is disabled or enabled upon changing the value of a block parameter in the mask dialog box.

Execute Callback Code

Mask parameter callback codes are executed in a temporary workspace and not in the base workspace. If you need a variable created in the callback to be available later (not during callback processing), you must explicitly assign those variables to the base workspace.

Simulink® executes the callback commands when there is a change in the value of the parameter. Parameter callbacks are executed in the following scenarios:

Note

See Also

Topics