In another thread, I asked why my plots did not *RESEMBLE* Rick Lyons'
'textbook' examples. I received many informative responses. Some pointed
out "gotchas" that newbies such as myself often miss. Other responses
addressed issues which can trip up gurus. I wish to address some issues
in the 2nd category although I'll complicate issue by being a newbie
I wish to investigate/evaluate/? windowing functions.
I make an underlying assumption that knowing/understanding the FFT of a
time domain windowing function is crucial.
I started with a rectangular window.
{ It's crude but easily reproduced }
Based on some 'a priori' assumptions/presumptions, I chose 90% as a
appropriate duty cycle.
I plotted 2 cases and got widely different results.
[ see
http://users.erols.com/jyavins/Owlett.htm ]
the scilab code for first is
a(1:899)=1;
a(900:1000)=0;
plot2d( [1:1000], abs(fft(a,-1)), logflag="nl")
the scilab code for second is
a(1:89)=1;
a(90:100)=0;
plot2d( [1:100], abs(fft(a,-1)), logflag="nl")
Making them more general
a(1:AA)=1;
a((AA+1):BB)=0;
plot2d( [1:BB], abs(fft(a,-1)), logflag="nl")
I suspect that for a "clean" plot AA and BB should be relatively prime.
I suspect AA and BB should *EACH* be prime.
Am I on the right track?