Carrier Frequency Offset impairment in MATLAB

This section of MATLAB source code covers Carrier Frequency Offset impairment and Carrier Frequency 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

foff=input('Enter Frequency offset:');%= 10e3; % Hz
foff=(foff)/20e6; % 20MHz is the Bandwidth of the system
map_out_foff=frequency_offset(mapper_out,foff);
figure;plot(real(map_out_foff),imag(map_out_foff),'r+');title('constellation with Frequency offset');

Input and output constellation diagram

constellation input
carrier frequency 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