Write a MATLAB program that uses RK4 to solve the ODE subject to the initial conditions y(0)

Question:

Write a MATLAB program that uses RK4 to solve the ODEd'y dy +y dx dx - sin(x)y exp(-x) =

subject to the initial conditions y(0) = 1 and y(0) = 0. You should compute the solution for the step size h = 0.01. Make a plot of the function y(x) over the range x = [0, 10].

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: