Below is the code that I did in matlab trying to reproduce theresults obtained on pages 8 and 9 of the article namedThe Fluctuating Two-Ray Fading Model: StatisticalCharacterization and Performance Analysis – Availableat link – https://arxiv.org/pdf/1611.05063.pdf
I need your help in order to check and correct it.
clc;
clear all;
close all;
N = 10^6; % number of bits or symbols
Eb_N0_dB = [-10:40]; % multiple Eb/N0 values
nTx = 2;
nRx = 2;
for ii = 1:length(Eb_N0_dB)
% Transmitter
ip = rand(1,N)>0.5; % generating 0,1 with equalprobability
s = 2*ip-1; % BPSK modulation 0 -> -1; 1 -> 0
sMod = kron(s,ones(nRx,1)); %
sMod = reshape(sMod,[nRx,nTx,N/nTx]); % grouping in [nRx,nTx,N/NTx] matrix
h = 1/sqrt(2)*[randn(nRx,nTx,N/nTx)
PayPal Gateway not configured
PayPal Gateway not configured