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

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 17 de Mayo de 2013
Editada: Azzi Abdelmalek el 17 de Mayo de 2013

0 votos

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

3 comentarios

sia
sia el 17 de Mayo de 2013
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 el 17 de Mayo de 2013
Editada: Azzi Abdelmalek el 17 de Mayo de 2013
sia
sia el 17 de Mayo de 2013
I know, but i dont know how i can use it :( and i didnt finde good examples ...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

sia
el 17 de Mayo de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by