comparison scripts/general/is_matrix.m @ 904:3470f1e25a79

[project @ 1994-11-09 21:22:15 by jwe]
author jwe
date Wed, 09 Nov 1994 21:22:15 +0000
parents 16a24e76d6e0
children 3f257ab07921
comparison
equal deleted inserted replaced
903:b3692d63cca3 904:3470f1e25a79
1 # Copyright (C) 1993 John W. Eaton 1 # Copyright (C) 1993, 1994 John W. Eaton
2 # 2 #
3 # This file is part of Octave. 3 # This file is part of Octave.
4 # 4 #
5 # Octave is free software; you can redistribute it and/or modify it 5 # Octave is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the 6 # under the terms of the GNU General Public License as published by the
27 27
28 if (nargin == 1) 28 if (nargin == 1)
29 [nr, nc] = size (x); 29 [nr, nc] = size (x);
30 retval = (nr > 1 && nc > 1); 30 retval = (nr > 1 && nc > 1);
31 else 31 else
32 error ("usage: is_matrix (x)"); 32 usage ("is_matrix (x)");
33 endif 33 endif
34 34
35 endfunction 35 endfunction