isvect

Version 1.0.0.0 (1.76 KB) by Matt Fig
ISVECT(A,GUESS) Returns logical true if A is a vector of type guess.
2.3K Downloads
Updated 18 Jun 2008

View License

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 (2024). isvect (https://www.mathworks.com/matlabcentral/fileexchange/9902-isvect), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Search Path in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

M-Lint