Solving an ODE with ode45 on [0,10]

  • Thread starter Thread starter nashat
  • Start date Start date
  • Tags Tags
    Ode Ode45
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
nashat
Messages
1
Reaction score
0

Homework Statement


solve the initial problem using ode45 on the interval [0,10]


Homework Equations



cost dy/dt + ysint = 2t cos^2(t) y(0) = -Pi

The Attempt at a Solution



I have no I dia how to sart
 
Physics news on Phys.org
Matlab has an excellent help page. Press the help button on the tool bar and when the help page comes up, go to search and enter ode45. You can also do a google seach for ode45, usually that comes up with a lot of examples. Check out the ones with .edu. Those are usually the best. Once you have read that and it is still not working for you, then come here and ask a more specific question.