changeset 16734:67b67fc0969a

gallery: fix bug from typo in variable name
author Carnë Draug <carandraug@octave.org>
date Sat, 08 Jun 2013 16:06:55 +0100
parents 2723d1144f11
children cee305c91e91
files scripts/special-matrix/gallery.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/special-matrix/gallery.m	Sat Jun 08 16:16:52 2013 +0200
+++ b/scripts/special-matrix/gallery.m	Sat Jun 08 16:06:55 2013 +0100
@@ -666,11 +666,11 @@
     error ("gallery: V must be numeric for circul matrix.");
   endif
 
-  n = numel (x);
-  if (isscalar (x) && fix (x) == x)
+  n = numel (v);
+  if (isscalar (v) && fix (v) == v)
     n = v;
     v = 1:n;
-  elseif (n > 1 && isvector (x))
+  elseif (n > 1 && isvector (v))
     ## do nothing
   else
     error ("gallery: X must be a scalar or a vector for circul matrix.");