Question: Please give me the correct matlab code for this problem using the given matlab format. You are given the following differential equation: d y (

Please give me the correct matlab code for this problem using the given matlab format. You are given the following differential equation:
dy(t)dt+10y(t)=2cos(217t+3)u(t)
You are told that y(0)=1
a) Find the transient (complimentary solution)yc(t)
b) Find the particular (steady-state solution),yp(t)
c) Find the total solution, y(t)
d) Plot yc(t),yp(t), and y(t) on the same graph. To see how to do this, look at the
command on page 133 of the text book.
In your online submission, you will need to know the following:
You need to create yc,yp, and y as row vectors using the time vector t=
0:T1000:10. In this expression, T is the period of the particular solution and
is the time constant.
Recall that the transient solution has the form yc(t)=Ce-t
Use the method shown in class with complex exponentials to obtain the particular solution.
tau =[];
B =[];
phi =[];
T =[];
t =[];
y_p =[];
C =[];
y_c =[];
y =[];
Please give me the correct matlab code for this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!