Scilab Reference Manual |
---|
vectorfind — finds in a matrix rows or columns matching a vector
ind = vectorfind(m,v,job)
m | : a matrix of any type |
v | : vector of any type |
job | : string flag with possible values "r" to look for matching rows or "c" to look for matching columns |
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')
R. Nikoukhah, S. Steer INRIA
<< unique | zeros >> |