Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

The following should be done in MATLAB:

1 answer below »
The following should be done in MATLAB:
Answered Same Day Oct 08, 2021

Solution

Kshitij answered on Oct 13 2021
161 Votes
solution/fig1.jpg
solution/fig2.jpg
solution
ep.docx
clc
clear all
close all
%% No of Bits/Symbols
No_Bits = input('Enter the Number of Bits : ') % put 10^4
Time_duration = 1;
%% Sampling facto
sampling_factor = input('Enter the Sampling Factor : ')% put 4
%% Sampling_frequuency fs
fs = 5/Time_duration;
%% E
N0 data/value
Eb_N0_dB = [0:10];
for ii = 1:length(Eb_N0_dB)
%% while on TX part
%% Genarating the Symbols (0 & 1) with equl probability or distribution - a
angements
genrated_symbols = rand(1,No_Bits)>0.5; % generating 0,1 with equal probability
s = 2*genrated_symbols-1; % BPSK modulation 0 -> -1; 1 -> 0
%% for TX --- apply the UP Sampling the signal/data before transmission
up_sampling = [s;zeros(sampling_factor-1,length(s))];
up_sampling = up_sampling(:).';
filter_upsampling_data = 1/sqrt(sampling_factor)*conv(up_sampling,ones(1,sampling_factor));
filter_upsampling_data = filter_upsampling_data(1:No_Bits*sampling_factor);
%% Applying or Adding the AWGN -- Additive white gaussian noise to the signal/data
noise_awgn = 1/sqrt(2)*[randn(1,No_Bits*sampling_factor) + j*randn(1,No_Bits*sampling_factor)];
%% Adding the Noise to the signal/data
awgn_added_signal = filter_upsampling_data + 10^(-Eb_N0_dB(ii)/20)*noise_awgn;
%% Initiate/Apply the Matched filer to the Signal
matched_filter = conv(awgn_added_signal,ones(1,sampling_factor)); % convolution
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here