check if a variable is a vector
t=isvector(x)
vector or matrix
a boolean
isvector(x) returns true if x
is a scalar (all dimensions equal to 1) or
is a vector (only one dimension not equal to 1).
isvector(ones(10,1)) isvector(1) | ![]() | ![]() |
| Version | Description |
| 2025.0.0 | isvector(x) now returns true if x is a scalar. |