changeset 13198:0a1774f1a70d

Update example in sparse.txi to use new calling form of randperm
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 23 Sep 2011 02:41:54 -0500
parents 6db186dfdeaa
children 829fa67155eb
files doc/interpreter/sparse.txi
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/sparse.txi
+++ b/doc/interpreter/sparse.txi
@@ -241,7 +241,7 @@
 @group
   ri = ci = d = [];
   for j = 1:c
-    ri = [ri; randperm(r)(1:n)'];
+    ri = [ri; randperm(r,n)'];
     ci = [ci; j*ones(n,1)];
     d = [d; rand(n,1)];
   endfor