Programmer Guide/Command Reference/EVAL/ncol: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====ncol=====


The number of columns in <var>x</var>.
Returns the number of columns of the argument <var>x</var>.


{|
;Usage: '''<code>ncol(<var>x</var>)</code>'''
|-
 
|Usage:
;Result: The result of this function is the number of columns of <var>x</var>. If <var>x</var> is a scalar or a vector, the result is '''1'''. The function '''cols(''x'')''' and the special ''bracket'' form '''|''x''|''' can be used as alias for '''ncol'''.
|ncols(x)
 
|-
;See also: [[Programmer_Guide/Command_Reference/EVAL/nrow|nrow]]
|
 
|cols(x)
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
|-
|Result:
|The number of columns in x (1 for scalars and vectors).
|-
|Return Type:
|scalar
|}

Revision as of 10:04, 4 April 2011


Returns the number of columns of the argument x.

Usage
ncol(x)
Result
The result of this function is the number of columns of x. If x is a scalar or a vector, the result is 1. The function cols(x) and the special bracket form |x| can be used as alias for ncol.
See also
nrow

<function list>

Navigation menu

Personal tools