Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

iscolumn

Determine whether input is column vector

Syntax

iscolumn(V)

Description

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

Examples

Determine if a vector is a column. This example is a row so iscolumn returns 0:

V = rand(1,5);
iscolumn(V)
ans =
     0

Transpose the vector to make it a column. iscolumn returns 1:

V1 = V';
iscolumn(V1)
ans =
     1

More About

collapse all

Tall Array Support

This function fully supports tall arrays. For more information, see Tall Arrays.

Was this topic helpful?