Code 1

mail@pastecode.io avatar
unknown
plain_text
5 days ago
710 B
1
Indexable
Never
clc;
clear all;
close all;

% For µ < 1
t= 0:0.0001:1;
Am = 5;
Ac = 10;
f1= 1 ;
f2 = 10;
w1 = 2*pi*f1;
m= Am/Ac ;
w2 = 2*pi*f2;
x1 = Am * sin(w1*t);
x2= Ac*sin(w2*t);
Eam = Ac * (1+m*sin(w1.*t)).*(sin(w2.*t));

% Message Signal
subplot(3,1,1);
plot(t, x1, 'r');
grid on;
xlabel('Time (Seconds)');
ylabel('Amplitude');
title('Generated Message Signal 2241003014');

% Carrier Signal
subplot(3,1,2)
plot(t, x2, 'k');
grid on;
xlabel('Time (Seconds)');
ylabel('Amplitude');
title('Generated Carrier Signal 2241003014');

% µ Signal 
subplot(3,1,3);
plot(t, Eam, 'b');
grid on;
xlabel('Time (Seconds)');
ylabel('Amplitude');
title('Generated µ Signal 2241003014');



Leave a Comment