# HG changeset patch # User Carnë Draug # Date 1435932098 -3600 # Node ID 557979395ca9f75e3ccf2fae361368aaba6701eb # Parent 2102c4582e320aadb267a4eb921e1f3b31979aa7 gallery: allow single element vectors for 'house'. diff -r 2102c4582e32 -r 557979395ca9 scripts/special-matrix/gallery.m --- 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