View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
802.11g wlan phy model

5.0 | 3 ratings Rate this file 53 Downloads (last 30 days) File Size: 229 KB File ID: #38073 Version: 1.3
image thumbnail

802.11g wlan phy model



10 Sep 2012 (Updated )

It is a modified version 802.11a

| Watch this File

File Information

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;


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.')


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

Required Products Simulink
MATLAB release MATLAB 7.14 (R2012a)
Other requirements signal processing toolbox
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
17 Oct 2016 jinwoo so

I use 2012a version.
In order to do my homework, i use your simulink file. but i have 3 errors.
S-Function 'wlan80211g_udg' does not exist, Initialization commands cannot be evaluated., Undefined function or variable 'wlan80211g_settings'.
plz tell me how to solve these error.
my email address is .

Comment only
25 Jun 2016 Kirils Matovics

Please, could you help me?! Is there a way, to get frame rate in this model?

Comment only
25 Jun 2016 Kirils Matovics

10 Mar 2013 sai

sai (view profile)

First of all thank you for the file. What parameters are to be changed for differentiating 802.11g with 802.11a and how should i change them. I am relatively new to Simulink. Please help.

26 Dec 2012 Yaser

Yaser (view profile)

Appreciated, god bless you, as I commented before, a little bit of explanation is mandatory, some visitors of fileexchange are new researcher and your files with a little details really help them

24 Sep 2012 1.3

the model is modified to be used with matlab 2010a

Contact us