mathematical model into matlab
Mostrar comentarios más antiguos
how can i write the following mathematical model in MATLAB and get answer of (q) for any value of (t) that i want to put in
q(t)= (6.25* 10^9)/(t+500)^3
Respuestas (2)
Method 1 Anonymous Function
q = @(t) (6.25* 10^9)/(t+500)^3 ;
q(1)
Method 2
t = 1 ;
q = (6.25* 10^9)/(t+500)^3 ;
If you have an array of t :
t = 0:0.01:10 ;
q = (6.25* 10^9)./(t+500).^3 ;
plot(t,q)
4 comentarios
Walter Roberson
el 6 de Mayo de 2020
Note: the above are not vectorized
prinesh patel
el 6 de Mayo de 2020
prinesh patel
el 6 de Mayo de 2020
KSSV
el 6 de Mayo de 2020
Read about diff. If you want it symbolic read about syms.
Walter Roberson
el 6 de Mayo de 2020
Editada: Walter Roberson
el 6 de Mayo de 2020
q = @(t) (6.25* 10^9)./(t+500).^3
This will work for vectors or arrays of t.
5 comentarios
prinesh patel
el 6 de Mayo de 2020
Walter Roberson
el 6 de Mayo de 2020
I recommend using the Symbolic Toolbox
prinesh patel
el 6 de Mayo de 2020
Walter Roberson
el 6 de Mayo de 2020
Indeed you did email me, but I always assume that email is confidential unless the sender says otherwise. It would not be proper for me to respond in public to confidential information.
prinesh patel
el 6 de Mayo de 2020
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!