s=-2*pi:0.1:2*pi
sum=1*pi
for i=1:3
sum=sum-((2*sin(i*s))/i)
end
plot(s,sum)
hold on
s=-2*pi:0.1:2*pi
sum=1*pi
for i=1:9
sum=sum-((2*sin(i*s))/i)
end
plot(s,sum)
hold on
s=-2*pi:0.1:2*pi
sum=1*pi
for i=1:11
sum=sum-((2*sin(i*s))/i)
end
plot(s,sum)
hold off