How calculate transmission energy for transmit of data (with N sample) by IEEE 802.11b radio standard in MATLAB?

I want to calculate transmission energy for transmission of data with N sample by IEEE 802.11b radio standard. Can anyone help me to write MATLAB code to do it?