MATLAB: How can I make d^(5.13) ?

MATLABsimulink

I wanna make d^(5.13) such that d = a variable and the user can change the value of that from GUI. I made ist with Constant Block and i wrot d^(5.13) and if i want to chang the variable d i chang whole of the value :(…. with wich block or how can i do it???
THX

Best Answer

Use set_param function
d=10
set_param('YourModel/Constant','Value',num2str(d))