how can I make d^(5.13) ??

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일

0 개 추천

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

댓글 수: 3

sia
sia 2013년 5월 17일
no, aou didnt understand me :)...
i wann add a matlab function to my model. and I give the value of d as input and now i want to write a function, which calculates d^5.13, where d is my input. how can i do it??
THX
Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 17일
편집: Azzi Abdelmalek 2013년 5월 17일
sia
sia 2013년 5월 17일
I know, but i dont know how i can use it :( and i didnt finde good examples ...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

sia
2013년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by