%% Determine Vector from Matrix
% Create a 2-by-2 matrix. Determine whether it is a vector.

A = [1 2; 3 4];
TF = isvector(A)

% Check whether the first column of the matrix is a vector.

TF = isvector(A(:,1))

% Check whether the first row of the matrix is a vector.

TF = isvector(A(1,:))

%
% Copyright 2012 The MathWorks, Inc.