how can I make d^(5.13) ??

1 次查看(过去 30 天)
sia
sia 2013-5-17
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

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-5-17
编辑:Azzi Abdelmalek 2013-5-17
Use set_param function
d=10
set_param('YourModel/Constant','Value',num2str(d))
  3 个评论
sia
sia 2013-5-17
I know, but i dont know how i can use it :( and i didnt finde good examples ...

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by