Hello,
I am trying to do simple phase compensation. However, the code is always making some extra phase correction. Its not making an exact compensation. Please have a look at the code. I think I am formulating it wrongly. Although theta estimation is pretty correct.
theta = pi/5; t=(0:1000)/1000;freq = 20;s1 = sin(2*pi*freq*t);s2 = sin(2*pi*freq*t + theta);theta_estimate = acos( 2*mean( s1.*s2) );s3=s2*(cos(theta_estimate)+(1i*sin(theta_estimate)));
s3 and s1 are not completely phase synced.
Best Answer