필터 지우기
필터 지우기

why i am not getting fourier transform plot using ezplot command

조회 수: 1 (최근 30일)
aman ch
aman ch 2021년 6월 19일
답변: Star Strider 2021년 6월 19일
syms t w
X = 1/(1+(1i.*w));
subplot(3,1,1)
ezplot(X,[-9 9]);
title('original signal');
%inverse Fourier transform
X1 =ifourier(X,t);
subplot(3,1,2)
ezplot(X1,[-5 5]);
title('inverse transform');
%Fourier Transform
X2 =fourier(X1,w);
subplot(3,1,3)
fplot(X2,[-5 5]);
title('fourier transform');

채택된 답변

Star Strider
Star Strider 2021년 6월 19일
Since ‘X’ and ‘X2’ are purely imaginary, it is necessary to specify that in the ezplot calls. In MATLAB, imaginary values and imaginary parts of complex values do not plot.
Try this —
syms t w
X = 1/(1+(1i.*w));
figure
subplot(3,1,1)
ezplot(imag(X),[-9 9]);
title('original signal');
%inverse Fourier transform
X1 =ifourier(X,t);
X1 = 
subplot(3,1,2)
ezplot(X1,[-5 5]);
title('inverse transform');
%Fourier Transform
X2 =fourier(X1,w)
X2 = 
subplot(3,1,3)
fplot(imag(X2),[-5 5]);
title('fourier transform');
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Hilbert and Walsh-Hadamard Transforms에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by