x"(t) + 4x'(t)+5x(t)O with initial conditions x(0) 3 and x (0)-5 a) Use the four order Runge-Kutta method with step size h = 0.1 to solve the differential equation over the interval [0, 5]

1 view (last 30 days)
what are the codes?
  1 Comment
Steven Lord
Steven Lord on 30 Sep 2019
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
For this particular problem, you can check your work using the ode45 function. While they may not give exactly the same values, the solutions should be similar.

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!