finds in a matrix rows or columns matching a vector
ind = vectorfind(m,v[,job])
:m a matrix of any type (the same type as v). : :v a vector of any type (the same type as m). : :job A character string: optional flag with possible values “r” to
look for matching rows or “c” to look for matching columns. Default value is “r”.
: :ind row vector containing indices of matching rows or columns :
Finds in a matrix rows or columns matching a vector.
alr=[1,2,2;
1,2,1;
1,1,2;
1,1,1;
1,2,1];
ind = vectorfind(alr,[1,2,1],'r')
ind = vectorfind(`string`_(alr),`string`_([1,2,1]),'r')