Fourier transform in continuous time signal
Versión 1.0.0 (273 KB) por
Jeganathan
The project aims to demonstrate the importance and functionality of Fourier transform in analyzing continuous-time signals.
The project scope includes demonstrating Fourier transform's application in analyzing continuous-time signals. It covers concepts like frequency spectrum, amplitude, and phase. However, it may not delve deeply into advanced topics or specific applications beyond the basics. The focus is on providing a clear and intuitive demonstration of Fourier transform's significance and functionality.
% Define the continuous-time signal
t = -5:0.01:5; % Time vector
x = sin(2*pi*t) + 0.5*cos(4*pi*t); % Example signal
% Compute the Fourier transform
X = fftshift(fft(x));
% Frequency vector
Fs = 1/(t(2)-t(1)); % Sampling frequency
f = linspace(-Fs/2, Fs/2, length(t));
% Plot the original signal
subplot(2,1,1);
plot(t, x);
xlabel('Time (s)');
ylabel('Amplitude');
title('Original Signal');
% Plot the magnitude of the Fourier transform
subplot(2,1,2);
plot(f, abs(X));
xlabel('Frequency (Hz)');
ylabel('Magnitude');
title('Fourier Transform');
% Adjusting plot limits for better visualization
xlim([-10, 10]); % Set the frequency range to display
Citar como
Jeganathan (2025). Fourier transform in continuous time signal (https://la.mathworks.com/matlabcentral/fileexchange/164526-fourier-transform-in-continuous-time-signal), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2024a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Agradecimientos
Inspirado por: Fourier transform demonstration
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
