See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | | | | | | | | | | | | |
| | | |
| | | isvector | | |
| | | |
| | | Purpose Syntax Description | | |
| | | Determine whether input is vector TF = isvector(A) TF = isvector(A) returns logical 1 (true)if A is a 1-by-N or N-by-1 vector where N>= 0,and logical 0 (false) otherwise. The A argumentcanalsobeaMATLAB® object, as described in , as long as that object overloads the size function. Test matrix A and its row and column vectors: A = rand(5); isvector(A) | | |
| | | |
| | | Examples | | |
| | | |
| | | |
| | | ans | | |
| | | |
| | | 0 | | |
| | | |
| | | isvector(A(3, :)) | | |
| | | |
| | | ans | | |
| | | |
| | | 1 | | |
| | | |
| | | isvector(A(:, 2)) | | |
| | | |
| | | ans | | |
| | | |
| | | 1 | | |
| | | |
| | | See Also | | |
| | | isscalar, isempty, isnumeric, islogical, ischar, isa, is* | | |
| | | |
| | | |
| | | 2-1895 | | |
| | | |
| | | | | | | | | | | | | | | | | | | | | | | | |