www.pudn.com > jaguar2s.zip > ONECHAN.M
function y = onechan(n,N)
% generate a waveform consisting of 16 tones
% starting at n
echo off
for i = 1:1:N %number of samples
I=0;
Q=0;
for k=n:n+16
I = cos(2*pi*k*(i-1)/N) + I;
Q = sin(2*pi*k*(i-1)/N) + Q;
end;
y(i) = I + j*Q;
end;