srsLTE/matlab/sync/sfo_estimate.m

8 lines
119 B
Mathematica
Raw Normal View History

2014-01-28 03:41:17 -08:00
function [ sfo ] = sfo_estimate( fs, T )
sfo = 0;
for i=2:length(fs)
sfo=sfo + (fs(i)-fs(i-1))/length(fs)/T;
end