# HG changeset patch # User Carnë Draug # Date 1435936856 -3600 # Node ID 26fc9bbb8762ed8ce719c3561c196bd2c596d5db # Parent 0b9d23557506be8cc175fb29f46dd3dc0e391f42 gallery: fix typo on variable name for invhess matrix. diff --git a/scripts/special-matrix/gallery.m b/scripts/special-matrix/gallery.m --- a/scripts/special-matrix/gallery.m +++ b/scripts/special-matrix/gallery.m @@ -1398,7 +1398,7 @@ n = x; x = 1:n; elseif (! isscalar (x) && isvector (x)) - n = numel (n); + n = numel (x); else error ("gallery: X must be an integer scalar, or a vector for invhess matrix."); endif