Recent content by Mrs_ChemE
-
M
MATLAB ODE45 Help for Matlab: Fix Your Code Now
Thanks Matematikawan. Right now, I have a separate file named "Prob_52" that has the function and then a file with: [t,y] = ode45 (@prob_52,[0,1],0) plot (t,y) xlabel ('Time') ylabel ('Function Value') My professor is unable to run it, which makes it a fail. I'm wondering if this is because...- Mrs_ChemE
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB ODE45 Help for Matlab: Fix Your Code Now
Matlab ODE45 Help?? function dy = prob_52 (t,y) dy = cos(y) - (sin (t)*y); [t,y] = ode45 (@prob_52,[0,1],0) plot (t,y) xlabel ('Time') ylabel ('Function Value') I was told my code is incorrect. Does anyone have suggestions on where I'm going wrong? Thanks- Mrs_ChemE
- Thread
- Matlab Ode45
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX