isvector
Determine whether input is vector
Syntax
Description
Examples
Input Arguments
Algorithms
If the input array
A
has more than two dimensions, thenisvector(A)
always returns logical0
(false
). For example, an array of size 1-by-1-by-N is not a vector.isvector(A)
function does not have any special behavior for dimension lengths equal to 0. For example,isvector(A)
returns logical1
(true
) if the size of A is 0-by-1. But,isvector(A)
returns logical0
(false
) if the size of A is 0-by-3.
Extended Capabilities
Version History
Introduced before R2006a