clcclose allclear all%%data = xlsread('freq15.xlsx','Group Name #2');v= data(:,1);plot (v);title('Voltage signal with noise')xlabel('Samples')ylabel('Amplitudes')%%%plot magnitude specturm of a signalclcformat longX_mag=abs((fft(v)))figure(1)plot(X_mag)xlabel('DFT Bins')ylabel('Magnitude')%%
Above is a code using FFT in MATLAB. The outcome of the code is NAN+NANi. How to get rid of NAN or what is the reason of this outcome?
Best Answer