Hi,
Here is the code I am trying to implement to set the parameter value in SIMULINK model using GUI.
f
unction radiobutton_Callback(hObject, eventdata, handles)val = get(hObject,'Value'); if val == 1 set_param([bdroot '/parameter_name'],'Value',800) end
It gives me following error:
Invalid setting in Constant block 'parameter_name' for parameter 'Value'
Can anyone help me with this?
I also tried to use 'Constant' in place of 'Value' in the statement-
set_param([bdroot '/parameter_name'],'Constant',800)
but then it give this error:
Constant block does not have a parameter named 'Constant'
Best Answer