필터 지우기
필터 지우기

error while using complex2real

조회 수: 1 (최근 30일)
Tricky
Tricky 2011년 11월 28일
I'm trying to extract the 'real' values of amplitudes and phases from the fft output A1
Y=complex2real(A1);
Where A1 is containing the Fourier transform values of a image as 1323*1 of single type.
its showing error like this ??? Undefined function or method 'complex2real' for input arguments of type'single'

채택된 답변

Wayne King
Wayne King 2011년 11월 28일
complex2real is not a MATHWORKS' function. That error message is indicating that MATLAB does not know anything about that function. If that is a function someone has written, then make sure it is on your MATLAB path. Use addpath() or pathtool() to add the folder where that function lives.
If you want the polar form of the Fourier coefficients, you can use
abs(A1) % magnitude
angle(A1) %phase

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by