DC offset impairment in MATLAB

This section of MATLAB source code covers DC offset impairment and DC offset effect on constellation diagram using matlab code.

Part A and PART C of the matlab code is same as mentioned on AWGN page.

Source code-PART B

DCO=input('Enter DC offset:(default:2.5)');
%map_out_dc= (real(mapper_out)+DCO) +i*(imag(mapper_out)+DCO);
map_out_dc= mapper_out* DCO;
%figure;plot(real(mapper_out_ori),imag(mapper_out_ori),'b+');title('constellation without DC offset');
figure;plot(real(map_out_dc),imag(map_out_dc),'r+');title('constellation with DC offset');

Input and output constellation diagram

constellation input
DC offset effect on constellation

Useful Links to MATLAB codes

Refer following as well as links mentioned on left side panel for useful MATLAB codes.
OFDM Preamble generation  Time off estimation corr  Freq off estimation corr  channel estimation  11a WLAN channel  PN sequence generation  OFDMA Tx Rx  AES DES  carrier aggregation  CCDF  FIR Filter  IIR Filter  Low Pass FIR  Viterbi decoder  CRC8 CRC32 

RF and Wireless tutorials

WLAN  802.11ac  802.11ad  wimax  Zigbee  z-wave  GSM  LTE  UMTS  Bluetooth  UWB  IoT  satellite  Antenna  RADAR