Doxygen Source Code Documentation
isrow.m
Go to the documentation of this file.00001 function ans = isrow (v); 00002 % ans = isrow (v); 00003 %returns 1 if v is a row vector 00004 %returns 0 if v is a column vector 00005 %returns -1 if v is a matrix 00006 % 00007 % Ziad Saad July 20 97 00008 00009 if (size (v,1) ~= 1 & size (v,2) ~= 1), 00010 ans = -1; 00011 end; 00012 00013 if (size (v,1) == 1), 00014 ans = 1; 00015 elseif (size (v,2) == 1), 00016 ans = 0; 00017 end; 00018 00019 return;