diff --git a/ofdm/ofdm_rx.m b/ofdm/ofdm_rx.m index 924b5c6..1b132a4 100644 --- a/ofdm/ofdm_rx.m +++ b/ofdm/ofdm_rx.m @@ -56,8 +56,8 @@ x = x + sqrt(0.5)*10^(knoise_dB/20)*(randn(size(x)) + j*randn(size(x))); K = fix((length(x))/(N+Ng))-1; % Timing coarse -cp_off_ = []; cp_off = 0; +cp_off_ = []; if 1 fprintf('Coarse timing estimation\n'); Z = 0; @@ -75,8 +75,6 @@ end fdet_coarse_Z = 0; Z_cfa_pre = 0; df_i_ = []; -df_ = []; -f_pilots = carrier_pilot'/N*fs valid_latency_count = 20; if 1 fprintf('Coarse integer CFO estimation\n');