Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語

Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Fonctions Elémentaires > Chercher et trier > vectorfind

vectorfind

finds in a matrix rows or columns matching a vector

Calling Sequence

ind = vectorfind(m,v[,job])

Arguments

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

Description

Finds in a matrix rows or columns matching a vector.

Examples

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')

See Also

  • find — trouve les indices des éléments vrais d'un vecteur ou d'une matrice de booléens
  • gsort — tri par l'algorithme "quick sort"

Authors

R. Nikoukhah, S. Steer INRIA

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:10:39 CEST 2011