Problem in finding ABS of a complex number of 2D matrix

2 ビュー (過去 30 日間)
Bharath 2015 年 2 月 17 日
コメント済み: Bharath 2015 年 2 月 17 日
I've created a 2D matrix of size 4096x28 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
%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
%phase angle for the second signal
I get this error
"??? Error using ==> abs
Too many input arguments.
Error in ==> Test_run_discard_AU_2 at 31
Any hints or suggestions would be really helpful. Thanks in advance.


Stephen23 2015 年 2 月 17 日
編集済み: Stephen23 2015 年 2 月 17 日
abs only accepts one input argument, whereas you are trying to use it with two: abs(ffty,NFFT).
In fact abs is defined as a unary operation , so what operation are you hoping to achieve by providing it with two arguments?
  4 件のコメント
Yoav Livneh
Yoav Livneh 2015 年 2 月 17 日
like Stephen Cobeldick said, and you should be fine.
Bharath 2015 年 2 月 17 日
Sorry guys! Little confused. I used only one argument for abs for fftx but ffty I made a mistake. I didn't see that. So I was thinking something else. Thanks again for your valuable time.


その他の回答 (0 件)


Help Center および File ExchangeTransforms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by