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
引用格式
Jeganathan (2024). Fourier transform in continuous time signal (https://www.mathworks.com/matlabcentral/fileexchange/164526-fourier-transform-in-continuous-time-signal), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2024a
兼容任何版本
平台兼容性
Windows macOS Linux标签
致谢
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |