Question: MATLAB CODING x D = (e) a*y Given in the data file (exponential.dat), where the first column is the y and the second column is
MATLAB CODING
xD = (e)a*y
Given in the data file (exponential.dat), where the first column is the "y" and the second column is the "xD" .
exponential.dat
+4.72354E-01 +3.45672E-08 +5.12571E-01 +5.39041E-08 +9.85014E-01 +2.00019E-03 +1.34205E+00 +1.82305E-01 +1.17604E+00 +4.23477E-01
Fit this exponential expression to a function and make the least squares approximation. Then solve the ODE below;
dx/dt = [ 2,5 - y(t) - x(t)*14,3 ] * 1,07 ODE equation
For the time interval t [0, 800] ms using the step sizes t = 40 ms and assume that y(0) = 0 for t = 0 s;
Write the MATLAB code that solves the ODE equation with the Euler Method and find the values of x(t) and y(t). Plots of x(t) and y(t) versus time t.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
