%% Solving differential equation using dsolve function
y=dsolve('D2y-2*Dy+2*y=exp(2*t)*sin(t)','y(0)=-0.4','Dy(0)=-0.6','t');
%%Pretty the y
pretty(y)
%%Plot the solution
ezplot(y,[0 5])
y=dsolve('D2y-2*Dy+2*y=exp(2*t)*sin(t)','y(0)=-0.4','Dy(0)=-0.6','t');
%%Pretty the y
pretty(y)
%%Plot the solution
ezplot(y,[0 5])