changeset 17091:3cbbdb49b8ff

interpft.m: Fix decimation by a non-integer factor (bug #39017) * interpft.m: Fix decimation when the desired number of points does not evenly divide the input size.
author Mike Miller <mtmiller@ieee.org>
date Fri, 26 Jul 2013 00:38:56 -0400
parents c8586e6fc60d
children 1d544ac39369
files scripts/general/interpft.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/interpft.m
+++ b/scripts/general/interpft.m
@@ -68,7 +68,7 @@
   x = permute (x, perm);
   m = rows (x);
 
-  inc = max (1, fix (m/n));
+  inc = ceil (m/n);
   y = fft (x) / m;
   k = floor (m / 2);
   sz = size (x);