function y=WindowedSineWave(N,f0,F0)
%y=cos(2*pi*(0:N-1)*f0/N) modulated by window function with frequency F0

    t=0:N-1;
    y=cos(2*pi*t*f0/N);
    window=(sign(cos(2*pi*t*F0/N))+1)/2;
    y=y.*window;
Error using WindowedSineWave (line 4)
Not enough input arguments.