Cover Page
Cover Page
Y. Sivani 2023001280
1.Introduction:
The Fourier Transform is a fundamental tool in signal processing that
allows signals to be analyzed in the frequency domain. The
modulation property of the Fourier Transform states that multiplying
a time-domain signal by a complex exponential shifts its spectrum in
the frequency domain. This property is crucial in communication
systems, where signals are modulated to shift them to different
frequency bands for efficient transmission.
2. Objectives:
To understand the analyzation of properties of Fourier
Transform
To analyze the simulation of a signal and noting the signal
when modulation is applied
To compare the simulation results with theoretical calculations.
Modulation Index 1 1
Duration 1 1
Time vector 0:1 0:1
Length 1000 1000
Number of samples 1000 1000
Other Parameters:
Frequency of sine wave (Hz): 50Hz
5.1 MATLAB Code
clc; clear; close all;
N = fs * T; % Number of samples
% Time vector
t = (0:N-1)/fs;
% Compute FFT
X_f = abs(fftshift(fft(x, N))) / N; % Normalize FFT
M_f = abs(fftshift(fft(modulated_signal, N))) / N;
% Frequency Axis
f = (-N/2:N/2-1)*(fs/N);
subplot(2,2,2);
plot(t, modulated_signal, 'r', 'LineWidth', 1.5);
title('Modulated Signal (Time Domain)');
xlabel('Time (s)'); ylabel('Amplitude'); grid on;
xlim([0, 0.1]); ylim([-A-1, A+1]);
subplot(2,2,4);
plot(f, M_f, 'r', 'LineWidth', 1.5);
title('Modulated Signal Spectrum');
xlabel('Frequency (Hz)'); ylabel('Magnitude'); grid on;
xlim([-300, 300]);
subplot(3,1,2);
plot(t, modulated_signal, 'r');
title('Modulated Signal (AM: Carrier at 200Hz)');
xlabel('Time (s)'); ylabel('Amplitude');
grid on; xlim([0 0.1]);
% Apply modulation
x_mod = x .* exp(1j*2*pi*fm*t);
% Plot Results
figure;
subplot(2,1,1);
plot(f, X, 'b', 'LineWidth', 1.5);
title('Magnitude Spectrum of Original Signal');
xlabel('Frequency (Hz)'); ylabel('Magnitude'); grid on;
subplot(2,1,2);
plot(f, X_mod, 'r', 'LineWidth', 1.5);
title('Magnitude Spectrum After Modulation');
xlabel('Frequency (Hz)'); ylabel('Magnitude'); grid on;
% Frequency comparison
fprintf('Theoretical Frequencies: ±%d Hz\n', fm);
fprintf('MATLAB Computed Peak Frequencies: ±%f Hz\n', f(locs(1)));