diff scripts/general/rat.m @ 6967:65a28e9de0a5

[project @ 2007-10-06 12:47:11 by jwe]
author jwe
date Sat, 06 Oct 2007 12:49:25 +0000
parents c81a0f3f5a82
children 8b0cfeb06365
line wrap: on
line diff
--- a/scripts/general/rat.m
+++ b/scripts/general/rat.m
@@ -58,7 +58,7 @@
   lastd = zeros(size(y));
 
   nd = ndims(y);
-  nsz = prod (size (y));
+  nsz = numel (y);
   steps = zeros([nsz, 0]);
 
   ## grab new factors until all continued fractions converge