isrow

Tests if v is a row vector of dimension 1 x N, where N is a non-negative integer.

Syntax

R = isrow(v)

Inputs

v
The input to be tested to determine if it is a row vector.
Type: scalar | string | struct | cell | vector | matrix

Outputs

R
R is a logical value indicating whether v is a row vector.

Examples

Row vector example:
R=isrow([1,2,3])
R = 1
Multiple rows example:
R = isrow([1 + i; 2])
R = 0