I am working on phase correction algorithms. Can anyone help me understand how can the following diagram be used for phase correction:
Additionally, for a channel function suggested How determine the delay in my signal practically, I have tried the following:
Fs = 306.700*1e+3; % sampling rate Fc = 100*1e+3; % central frequency B = 4*1e+3; % bandwidth N = 3072; T = (N-1)/Fs; t = 0:1/Fs:T; %time baseband_signal = chirp(t,-B/2,t(end),B/2)-i*chirp(t,-B/2,t(end),B/2,'linear',90); % Modulation modulated_signal = baseband_signal.*exp(i*2*pi*Fc.*t); modulated_signal = real(modulated_signal); % Transmitted signal tx = modulated_signal.*1.25/max(modulated_signal); % Received signal rx = [zeros(1,200) tx]; t_received = 0:1/Fs:(length(rx)-1)/Fs; % Computing equalization filter: rx and tx swapped! coeff = channel(rx,tx,20); % Equalization filtering rx_corrected = filter(coeff, 1, rx); figure freqz(coeff) title('Equalization filter') figure plot(t_received,rx,t_received,rx_corrected) xlabel('Time (s)'); ylabel('Amplitude'); grid on; legend('initial','corrected')
Shouldn't the equalization suggested here remove the phase delay and have the equalized and transmitted signal aligned?