isvect
ISVECT(A,GUESS)
A is an array. The alternative input, GUESS, is either:
1 or 'r' or 'row' (row vector) or
2 or 'c' or 'col' or 'column' (column vector).
Examples:
isvect(A) % Returns true
isvect(A,1) % Returns true
isvect(A,'r') % Returns true
isvect(A,2) % Returns false
[tf TYPE] = isvect(A) % Returns tf=1, TYPE=1 (row vector)
If A is a scalar, isvect(A) returns true for either guess and type=1.
See help.
Created for version 6.5, as isvector doesn't exist for R13.
Please email me with bugs or suggestions. Thanks
Cite As
Matt Fig (2025). isvect (https://www.mathworks.com/matlabcentral/fileexchange/9902-isvect), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: isrow iscol: pedestrian siblings who determine the nature of an array
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | M-Lint |