thanks Serge Steer, the code does exactly what I wanted -- View this message in context: http://mailinglists.scilab.org/Find-the-position-of-vector-in-another-vector-tp4030943p4030946.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.