Mercurial > hg > octave-nkf
diff scripts/special-matrix/gallery.m @ 20505: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 |
line wrap: on
line diff
--- a/scripts/special-matrix/gallery.m +++ b/scripts/special-matrix/gallery.m @@ -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