A0 0 W 1 N 3 Q 10 W 20 T 0:.1:10 Sum 0 For K 1:2:25 %K 1 Sum Sum+sin (2 Pi Q T) +sin (2 Pi W T) End Plot (T, Sum) Grid

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

a0=0;

w=1;
n=3;
q=10;
w=20;
t=0:.1:10;
sum=0;
for k=1:2:25
%k=1;
sum=sum+sin(2*pi*q*t)+sin(2*pi*w*t);
end
plot(t,sum)
grid

You might also like