Mercurial > hg > octave-lyh
diff scripts/general/rows.m @ 4:b4df021f796c
[project @ 1993-08-08 01:26:08 by jwe]
Initial revision
author | jwe |
---|---|
date | Sun, 08 Aug 1993 01:26:08 +0000 |
parents | |
children | 16a24e76d6e0 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/scripts/general/rows.m @@ -0,0 +1,15 @@ +function nr = rows (x) + +# usage: rows (x) +# +# Return the the number of rows in x. +# +# See also: size, columns, length, is_scalar, is_vector, is_matrix + + if (nargin != 1) + error ("usage: rows (x)"); + endif + + [nr, nc] = size (x); + +endfunction