做cumentation

iscolumn

Determine whether input is column vector

Syntax

iscolumn(V)

Description

iscolumn(V)returns logical 1 (true) ifsize(V) returns[n 1]with a nonnegative integer valuen, and logical 0 (false) otherwise.

Examples

collapse all

Determine if a vector is a column or not.

V = rand(1,5); iscolumn(V)
ans =logical0
Vt = V'; iscolumn(Vt)
ans =logical1

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2010b

Was this topic helpful?