diff scripts/general/is_duplicate_entry.m @ 4862:a0997c4d1d54

[project @ 2004-04-15 21:14:43 by jwe]
author jwe
date Thu, 15 Apr 2004 21:14:44 +0000
parents 22bd65326ec1
children 4c8a2e4e0717
line wrap: on
line diff
--- a/scripts/general/is_duplicate_entry.m
+++ b/scripts/general/is_duplicate_entry.m
@@ -29,8 +29,7 @@
 
   if (nargin == 1)
     if (ismatrix (x))
-      [m, n] = size (x);
-      lx = m*n;
+      lx = numel (x);
       lx1 = lx-1;
       x = sort (reshape (x, 1, lx));
       dx = x(1:lx1) - x(2:lx);