Mercurial > hg > octave-lyh
changeset 1331:c04c2a6849e8
[project @ 1995-08-24 01:35:58 by jwe]
author | jwe |
---|---|
date | Thu, 24 Aug 1995 01:35:58 +0000 |
parents | 41c6ffb66c01 |
children | 14e4c2a741c6 |
files | src/pt-const.cc |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-const.cc +++ b/src/pt-const.cc @@ -4930,6 +4930,11 @@ ::error ("A(matrix) = X: where A is a column vector, X must also be a"); ::error ("column vector with the same number of elements as matrix"); } + else if (nr == 0 || nc == 0) + { + ::error ("A(matrix) = X: X must be a vector with the same"); + ::error ("number of elements as matrix"); + } else panic_impossible (); } @@ -5017,6 +5022,11 @@ ::error ("A(range) = X: where A is a column vector, X must also be a"); ::error ("column vector with the same number of elements as range"); } + else if (nr == 0 || nc == 0) + { + ::error ("A(range) = X: X must be a vector with the same"); + ::error ("number of elements as range"); + } else panic_impossible (); }