phi_est modulo 2pi

git-svn-id: http://moon:8086/svn/matlab/trunk@17 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2015-04-04 17:50:18 +00:00
parent 51bcd1a549
commit 8c25a7702c
+1 -2
View File
@@ -27,11 +27,10 @@ for k=1:K
err(k) = f_f;
f_est = f_est + f_f;
dphi_est = 2*pi*mod(f_est/fs*N, 1);
phi_est = phi_est + dphi_est;
phi_est = mod(phi_est + dphi_est, 2*pi);
end;
f_est = f_est
error_ppm = 1E6*(1-f_est/f_true)