Using Simulink    

Tunable Parameters

A tunable parameter is a parameter that a user can modify at runtime. When you create a mask, all its parameters are tunable. You can subsequently disable or re-enable tuning of any of a mask's parameters via the MaskTunableValues parameter. The value of this parameter is a cell array of strings, each of which corresponds to one of a masked block's parameters. The first cell corresponds to the first parameter, the second cell to the second parameter, and so on. If a parameter is tunable, the value of the corresponding cell is on; otherwise, the value is off. To enable or disable tuning of a parameter, first get the cell array, using get_param. Then, set the corresponding cell to on or off and reset the MaskTunableValues parameter using set_param. For example, the following commands disable tuning of the first parameter of the currently selected masked block.

After changing a block's tunable parameters, make the changes permanent by saving the block.


 Default Values for Masked Block Parameters Initialization Commands