Write a MATLAB program that does an RK4 integration of the differential equation for the initial condition
Question:
Write a MATLAB program that does an RK4 integration of the differential equation
for the initial condition y(1) = 2 up to a maximum value x = 5. Your program should automatically generate a single plot with a legend that has the evolution of the function y(x) for the step sizes h = 0.2, h = 0.08 and h = 0.01.
Step by Step Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted: