MATLAB: How to update the block dialog parameters of a Constant block with the values specified in a Simulink.Parameter object in Simulink 8.1 (R2013a)

simulink

When I specify the value of a Constant block to be a Simulink.Parameter object, I would like the Output minimum and maximum values of the Constant block to be automatically updated to the values specified in the Simulink.Parameter object. How can I do this?

Best Answer

The ability to update the output range of a Constant block to the values specified in a Simulink.Parameter object is not available in Simulink 8.1 (R2013a).
As a possible workaround, you can specify the Output minimum and maximum values as follows:
evalin('base','p.Min');
evalin('base','p.Max');
where p is a Simulink.Parameter object created in the MATLAB base workspace.