isvector

Determines if x is a vector.

Syntax

isvector(x)

Inputs

x
Any valid input.
Type: double | integer | char | logical | struct | cell
Dimension: scalar | string | vector | matrix

Outputs

R
Boolean equivalent true or false.

Example

Simple isvector example:

isvector([1 2 3 4])
ans = 1