Professional Documents
Culture Documents
clear; clc;
% Simulation parameters
% Derived Parameters
deltaF = ofdmBW / N;
Tfft = 1 / deltaF;
Tgi = Tfft / 4;
nBitsPerSym = Nst;
for i = 1:length(EsN0dB)
for j = 1:nSym
% Transmitter
s = 2 * round(rand(1, Nst)) - 1;
% IFFT block
% Channel Modeling
% Receiver
% BPSK demodulation
s_cap = R_Freq;
end
hold on;
grid on;
xlabel('Eb/N0 (dB)');
ylabel('BER');
legend('Simulated', 'Theoretical');