Professional Documents
Culture Documents
Course ID EEE-314L
Student ID 1711396
Experiment No: 06
Experiment Name: Study on solving Differential Equations using 4th order Runge-Kutta method.
Objectives:
➢ To get introduced with basic MATLAB commands to perform Runge-Kutta Method.
➢ Perform Eulers Method on given examples.
➢ Verify MATLAB output with the theoretical hand calculations.
Apparatus:
➢ MATLAB
Experiments:
Write down appropriate MATLAB code to solve the following Equations using 4th order Runge-Kutta Method
(time = 0 to 3) and pints N = 4, 8, 12
• Equations
a. 𝑦 = 2𝑥 3
N= 4
N=8
N=12
b. 𝑦 = 𝑐𝑜𝑠(𝑥 2 )
N=4
N=8
N=12
Calculations:
Do the handwritten calculation for all the equations when N = 4.
Discussion:
Write down the procedure you followed to do the experiments (in short) and short result analysis.
In MATLAB we pre-defined the values of x, y for initial values and the range of x with step size, then we
opted for a FOR loop to continue calculation from N=0 to N=4, now MATLAB does works in matrix, so
we had to write N=1 to N=4, N=8, N=12.
Using the dydx function we found the first derivative and plot function for making the graphs.
LAB REPORT RUBRICS
Result and Analyzed and Intermediate The results are Intermediate The results are
analysis (25%) interpreted the results between analyzed to some between novice analyzed poorly
properly using the developing extent according and developing. due to
converter parameters. and to specified incomplete
accomplished. requirements. simulation.
Sub Total 80
Deduction for late
submission / any
other issue
Total (100%)
10% of Total