You are on page 1of 4

t=0:0.

05:10;

% raspunsul liber, vector s1

s1=(-2/5)*exp(-6.*t)+(7/5)*exp(-t);

% raspunsul fortat, vector s2

s2=1/6 +(1/30)*exp(-6.*t)+(-1/5)*exp(-t);

% raspunsul sistemului, vector s


s=s1+s2;

% trasarea celor 3 curbe


plot(t,s1,t,s2,t,s);
grid

You might also like