| Contents | Index |
isvector(A)
isvector(A) returns logical 1 (true) if size(A) returns [1 n] or [n 1] with a nonnegative integer value n, and logical 0 (false) otherwise.
Test matrix A and its row and column vectors:
A = rand(5);
isvector(A)
ans =
0
isvector(A(3, :))
ans =
1
isvector(A(:, 2))
ans =
1is* | isa | ischar | iscolumn | isempty | islogical | ismatrix | isnumeric | isrow | isscalar
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |