ROWINDEX = ROWFIND(VALUES, LOOKUPVALUES)
If more than one row from LOOKUPVALUES matches, it returns the index of the first matching row only. If no row matches, it returns a zero for that row.
Written in c, so the operation is fast. Type "mex rowfind.c" in matlab before use.
You might need a free compiler if it was not installed with your matlab:
correction to description
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.