Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

just one pls Department: QUESTIONS Answer the following questions in MATLAB. I.

ID: 2266785 • Letter: J

Question

just one pls

Department: QUESTIONS Answer the following questions in MATLAB. I. Solve the initial value problem of y" 6y + 8y -3cos (x) with initial values y(0) = 1, y, (0) = 1, print it on the screen and plot y with ezplot in the interval of [0 10] (Hint: you will need to use dsolve() function) of your design and Scope graphics y with ezplot in the interval of [0 10] (Hint: You will need to use laplaceO, ilaplace0, 3. Solve the following differential equation by Laplace transformation and plot the function heavisideO functions.) y"-y' + 2y = f(t) where y(0) = 0, y, (0) = 1 and

Explanation / Answer

Matlab Script:

syms x; %defining the symbol x
xt = dsolve('D2y-6*Dy+8*y == 3*cos(x)','y(0)=0','Dy(0)=1'); %D2y says y'' y(0) and Dy(0) are initial conditions

ezplot(xt,[0 10]);%plotting the xt using ezplot with range 0 10

Please let me know if you face any issues