comparison scripts/general/columns.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
comparison
equal deleted inserted replaced
3:9a4c07481e61 4:b4df021f796c
1 function nc = columns (x)
2
3 # usage: columns (x)
4 #
5 # Return the the number of columns in x.
6 #
7 # See also: size, rows, length, is_scalar, is_vector, is_matrix
8
9 if (nargin != 1)
10 error ("usage: columns (x)");
11 endif
12
13 [nr, nc] = size (x);
14
15 endfunction