isrow

Determine whether input is row vector

Syntax

isrow(V)

Description

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

Examples

collapse all

Determine if a vector is a row or not.

V = rand(5,1);
isrow(V)
ans = logical
   0

Vt = V';
isrow(Vt)
ans = logical
   1

Extended Capabilities

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

Introduced in R2010b