diff scripts/sparse/nonzeros.m @ 7505:f5005d9510f4

Remove dispatched sparse functions and treat in the generic versions of the functions
author David Bateman <dbateman@free.fr>
date Wed, 20 Feb 2008 15:52:11 -0500
parents f084ba47812b
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/sparse/nonzeros.m
+++ b/scripts/sparse/nonzeros.m
@@ -27,11 +27,7 @@
     print_usage ();
   endif
 
-  if (issparse (s))
-    [i, j, t] = spfind (s);
-  else
-    [i, j, t] = find (s);
-  endif
+  [i, j, t] = find (s);
 endfunction
 
 %!assert(nonzeros([1,2;3,0]),[1;3;2])