I've created a 2D matrix of size 4096×28 which contains complex numbers generated after performing FFT on a raw signal. Now I'm trying to find abs of the complex numbers in this matrix. But I get an error my code and error are as follows
%fft for X signal
fftx=fft(reshape(T_hor,4096,[]));%Xn value of the complex signal
Xn = abs(fftx);%phase angle for X signal
alpha = angle(fftx);%FFT for Y signal
ffty= fft(reshape(T_ver,4096,[]));%Yn value for the complex signal
Yn=abs(ffty,NFFT);%phase angle for the second signal
beta=angle(ffty);I get this error"??? Error using ==> absToo many input arguments.Error in ==> Test_run_discard_AU_2 at 31Yn=abs(ffty,NFFT);"
Any hints or suggestions would be really helpful. Thanks in advance.
Best Answer