Function Reference: Volume 2 (F-O) - The MathWorks - #951

/ 1568


catalogue search
P. 951
P. 952
P. 953
P. 954
P. 955
P. 956
P. 957
P. 958
P. 959
P. 960
P. 961
P. 962
P. 963
P. 964
P. 965
P. 966
P. 967
P. 968
P. 969
P. 970
P. 971
P. 972
P. 973
P. 974
P. 975
P. 976
P. 977
P. 978
P. 979
P. 980
P. 981
P. 982
P. 983
P. 984
P. 985
P. 986
P. 987
P. 988
P. 989
P. 990
P. 991
P. 992
P. 993
P. 994
P. 995
P. 996
P. 997
P. 998
P. 999
P. 1000


See other catalogues for The MathWorks

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

pageCatalog pdf di En 2012-06-22-01