0% found this document useful (0 votes)
8 views2 pages

Experiment (2) - 1

Exp 2

Uploaded by

mehlam667
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Experiment (2) - 1

Exp 2

Uploaded by

mehlam667
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

% Parameters

fc = 1000; % Carrier frequency in Hertz


fs = 10000; % Sampling frequency in Hertz
t = 0:1/fs:1; % Time vector from 0 to 1 second with 1/fs increment

% Modulation index
modulation_index = 1.5;

% Message signal
message_freq = 50; % Frequency of the message signal
message = 1*sin(2*pi*message_freq*t);

% Carrier signal
carrier = sin(2*pi*fc*t);

% Amplitude modulation
modulated_signal = (1 + modulation_index*message).*carrier;

% Amplitude demodulation (envelope detection)


envelope = abs(hilbert(modulated_signal));

% Plot the signals


figure;
subplot(3,1,1);
plot(t, modulated_signal);
title('Amplitude Modulated SignalRachit 22001003084');
xlabel('Time (s)');
ylabel('Amplitude');

subplot(3,1,2);
plot(t, envelope);
title('Envelope (Demodulated Signal) Rachit 22001003084');
xlabel('Time (s)');
ylabel('Amplitude');

subplot(3,1,3);
plot(t, message);
title('Demodulated Message Signal Rachit 22001003084');
xlabel('Time (s)');
ylabel('Amplitude');

% Display the plot


sgtitle('Amplitude Demodulation Example');

You might also like