iscolumn
Tests if v is a column vector of dimension M x 1, where M is a non-negative integer.
Syntax
R = iscolumn(v)
Inputs
- v
- The input to be tested to determine if it is a column vector.
Outputs
- R
- R is a logical value indicating whether v is a column vector.
Examples
Column vector
example:
R = iscolumn([1 + i; 2])
R = 1
Multiple columns
example:
R = iscolumn([1,2,3])
R = 0