![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290351/image.png)
HELP FOR PROJECT PLEASE
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
ghaddar karim
el 4 de Mayo de 2020
Respondida: Image Analyst
el 4 de Mayo de 2020
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290340/image.png)
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?
0 comentarios
Respuesta aceptada
Image Analyst
el 4 de Mayo de 2020
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)]);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/290351/image.png)
0 comentarios
Más respuestas (1)
Mirlan Karimov
el 4 de Mayo de 2020
Editada: Mirlan Karimov
el 4 de Mayo de 2020
use logarithmic scale in plotting?
Ver también
Categorías
Más información sobre Discrete Fourier and Cosine Transforms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!