diff --git a/ofdm/ofdm_rx.m b/ofdm/ofdm_rx.m index 6174c66..a17b4d3 100644 --- a/ofdm/ofdm_rx.m +++ b/ofdm/ofdm_rx.m @@ -5,9 +5,12 @@ close all; CP_SIZE = 256; FFT_SIZE = 1024; fa = 48000; - +fo = 0.0; k_fft = 2*sqrt(FFT_SIZE); +% Introduce frequency offset +x = 0.5*exp(i*2*pi.*(0:length(x)-1)*fo/fa)' .* x; + figure; Ns = (CP_SIZE + FFT_SIZE); Nf = length(x)/Ns;