From: drowe67 Date: Fri, 23 Mar 2018 20:29:48 +0000 (+0000) Subject: off by one bug X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=b12cb19bc43bf8b34a4b477efd34a59f4d600e7e;p=freetel-svn-tracking.git off by one bug git-svn-id: https://svn.code.sf.net/p/freetel/code@3425 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/octave/sample_clock_offset.m b/codec2-dev/octave/sample_clock_offset.m index 51691782..098c85e4 100644 --- a/codec2-dev/octave/sample_clock_offset.m +++ b/codec2-dev/octave/sample_clock_offset.m @@ -9,7 +9,7 @@ function rx = sample_clock_offset(tx, sample_clock_offset_ppm) tin=1; tout=1; rx = zeros(1,length(tx)); - while tin < length(tx) + while tin <= length(tx) t1 = floor(tin); t2 = ceil(tin); f = tin - t1;