changeset 20330:557979395ca9

gallery: allow single element vectors for 'house'.
author Carnë Draug <carandraug@octave.org>
date Fri, 03 Jul 2015 15:01:38 +0100
parents 2102c4582e32
children 0b9d23557506
files scripts/special-matrix/gallery.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/special-matrix/gallery.m	Thu Jul 02 22:26:16 2015 +0100
+++ b/scripts/special-matrix/gallery.m	Fri Jul 03 15:01:38 2015 +0100
@@ -1303,7 +1303,7 @@
 
   if (nargin != 1)
     error ("gallery: 1 argument is required for house matrix.");
-  elseif (! isnumeric (x) || ! isvector (x) || numel (x) <= 1)
+  elseif (! isnumeric (x) || ! isvector (x))
     error ("gallery: X must be a vector for house matrix.");
   endif