필터 지우기
필터 지우기

HELP FOR PROJECT PLEASE

조회 수: 1 (최근 30일)
ghaddar karim
ghaddar karim 2020년 5월 4일
답변: Image Analyst 2020년 5월 4일
hello guys, here i am drawing the Fourier transform of a cos(2*pi*t) but the scale is too big for the figure how can i see the exact form of the graph i apply ylim but it does not show exactly any help please?

채택된 답변

Image Analyst
Image Analyst 2020년 5월 4일
t = linspace(-3*pi, 3*pi, 1024);
y = cos(2*pi*t);
subplot(3, 1, 1);
plot(t, y, 'b-');
grid on;
title('Original Signal');
% Take FFT
ft = fft(y);
subplot(3, 1, 2);
yft = real(ft);
plot(fftshift(yft), 'b-');
grid on;
title('Real Part of Fourier Transform Signal');
xlim([1, length(t)]);
subplot(3, 1, 3);
semilogy(fftshift(yft), 'b-');
grid on;
title('Real Part of Fourier Transform Signal, Log Plot');
% xlim([1, length(t)]);

추가 답변 (1개)

Mirlan Karimov
Mirlan Karimov 2020년 5월 4일
편집: Mirlan Karimov 2020년 5월 4일
use logarithmic scale in plotting?
  댓글 수: 1
ghaddar karim
ghaddar karim 2020년 5월 4일
how do i do that?

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by