- #1
Mrs_ChemE
- 3
- 0
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
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