Hi,
I don't know why, if I do the G=sin(pi*x/5)./(pi*x), it returns NaN, can you help me?
Thanks
x=-100:0.1:100G=sin(pi*x/5)./(pi*x)H= abs(fft(G))Tinc=0.01Fs=1/Tinc;freq =transpose( -Fs/2:Fs/length(G):Fs/2-(Fs/length(G)));figure()plot(x,G)figure()plot(freq,H)
Best Answer