Zhengming C.

asked • 03/10/16

matlab code

I miss understand the this code
 
clear all;
Ts=1e-2; t=0:Ts:10; x1 = exp(-13/5.*t);
h1=3*exp(-2*t)+2*exp(-3*t);

y1=conv(x1,h1)*Ts;
t2=0:Ts:20;
figure;
plot(t2,y1);grid; ylabel('y1'); xlabel('t')
 
the range t for the x1 is between 0 and 10, but why the range for the plot t2 has to between 0 and 20.

1 Expert Answer

By:

Gregg O. answered • 03/10/16

Tutor
5.0 (366)

Engineering Valedictorian Available for Math Tutoring

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.