Question: a) Write a MATLAB script file to solve the y(t)=1.5e^(-3t)* cos(2t), using trapezoid method. Consider t=0 to 8.0 with t=0.25, and compare your result with
a) Write a MATLAB script file to solve the y(t)=1.5e^(-3t)* cos(2t), using trapezoid method. Consider t=0 to 8.0 with t=0.25, and compare your result with using trapz command
b) Write a MATLAB function to define 2 d^2y/dx^2 +4 dy/dx +y =3x
where dy(0)/dx=0.5 & y(0)= 1, in the form of a set of two first order ODE, then use ODE45 command to solve this equation for x=0 to 7.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
