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
Cita come
anuj saxena (2025). 802.11g wlan phy model (https://it.mathworks.com/matlabcentral/fileexchange/38073-802-11g-wlan-phy-model), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.