Modulator has been initialized as
% number of bits per symbol
switch modulation
case 'BPSK', Nb1 = 1;
case 'QPSK', Nb1 = 2;
case '16-QAM', Nb1 = 4;
case '64-QAM', Nb1 = 6;
case 'DQPSK', Nb1 = 8;
case 'OQPSK', Nb1 = 16;
end
modOrder = 2.^Nb1;
Nb = numSymbols * Nb1; % tx bits per block
codeRate = str2num(strvcat(code)).';
bitsPerBlock = Nb .* codeRate;
% interleaver
interleaverRows = 16;
if rem(Nb, interleaverRows)
error('Number of transmitted bits per block must be multiple of 16.')
end
interleaverCols = Nb / interleaverRows;
interleaverElements = [...
2*floor( [0:Nb-1]/2 ) + ...
mod( ([0:Nb-1] + Nb - floor( interleaverRows*[0:Nb-1]/Nb ) ), 2 ) ...
+ 1]';
The models looks like 802.11a but parameters used here are for 802.11g
Cite As
anuj saxena (2024). 802.11g wlan phy model (https://www.mathworks.com/matlabcentral/fileexchange/38073-802-11g-wlan-phy-model), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.