Question: Write a MatLab script to numerically solve for the function x(t) using Eulers method. Your plot should go from t = 1 to 25 s
Write a MatLab script to numerically solve for the function x(t) using Eulers method. Your plot should go from t = 1 to 25 s in 100 steps.
dx(t)/dt = 11/(100(t+1)^0.9)
x0=11/10 at t=0
Strategy:
Create a for loop to carry out the numerical process of Eulers method. In this for loop you will need to first calculate the slope using x(t). Use this slope to calculate the new value of your function at x(t+dt).
for i = 1:N;
dxdt(i) = ;
x(i+1) = x(i) + ;
end;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
