You are on page 1of 1

x=0:0.

01:10;

L=2;

y1=(4/pi)*1/1*sin((1*pi*x)/L);

y3=(4/pi)*1/3*sin((3*pi*x)/L);

y5=(4/pi)*1/5*sin((5*pi*x)/L);

y7=(4/pi)*1/7*sin((7*pi*x)/L);

y9=(4/pi)*1/9*sin((9*pi*x)/L);

figure

subplot(3,1,1)

plot(x,y1)

subplot(3,1,2)

plot(x,y1+y3)

subplot(3,1,3)

plot(x,y1+y3+y5+y7+y9)

You might also like