Professional Documents
Culture Documents
Design 2
Design 2
Design 2
% Number of samples
numSamples = 1000;
% Display results
figure;
subplot(3,1,1);
plot(real(y1), 'b');
hold on;
plot(real(y2), 'r');
title('Received Signals at Each Antenna');
legend('Antenna 1', 'Antenna 2');
xlabel('Sample Index');
ylabel('Amplitude');
subplot(3,1,2);
plot(real(y_mrc), 'g');
title('Combined Signal using MRC');
xlabel('Sample Index');
ylabel('Amplitude');
subplot(3,1,3);
plot(10*log10(abs(y1).^2), 'b');
hold on;
plot(10*log10(abs(y2).^2), 'r');
plot(10*log10(abs(y_mrc).^2), 'g');
DESIGN THINKING
title('Power Spectra');
legend('Antenna 1', 'Antenna 2', 'MRC');
xlabel('Sample Index');
ylabel('Power (dB)');
DESIGN THINKING