% mywave example 2
for i=1:1024
  B(i) = cos(i*2*pi/1024);
end