nrow (alias: rows)

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 11:27, 21 April 2011 by 193.171.195.48 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Returns the number of rows of the argument x.

Usage
ncol(x)
Result
The result of this function is the number of rows of x. If x is a scalar, the result is 1.
See also
ncol

<function list>


Example:

#vector := eval init(100,1,0)
conlog 'number of rows of $#vector: $(eval ncol($#vector))'
// the attribute !nrow returns the same value:
conlog 'number of rows of $#vector: $#vector[!nrow]'

Navigation menu

Personal tools