|Jul30-11, 04:42 AM||#1|
get the derivative with MATLAB ode45
Hello every one!
I'm trying to solve a differential equation y' = f(t,y) with MATLAB ode45. Besides the original y, y' is also very useful to me. But I simply don't know how to get it. Is there any convenient method to do this? Or what I can do is just to compute y in many point and use diff? Thank you very much!
|Aug1-11, 11:07 AM||#2|
Well, you do have the function for y' already. You define it to use with MATLAB's ode45. You could just plug in values for t and y. You could also use the diff command to get your specific y' from y, but that somehow seems like a waste to do the integration and then differentiate again.
|Aug1-11, 09:25 PM||#3|
Thanks and I get your idea. For I need to do integral with y, I'm concerned that whether computing y in many data points would slow down the computation.
|Similar Threads for: get the derivative with MATLAB ode45|
|need help for ODE45 matlab||Math & Science Software||3|
|Matlab: ode45 help||Engineering, Comp Sci, & Technology Homework||1|
|matlab ode45||Differential Equations||7|
|Matlab ODE45 Help??||Differential Equations||4|
|ode45 matlab||Introductory Physics Homework||1|