[Scilab-users] get the intersect x and y

Samuel Gougeon sgougeon at free.fr
Sat Sep 19 17:15:42 CEST 2015


Hello,

Le 19/09/2015 13:46, fujimoto2005 a écrit :
> I want to get the indices of vector x which satisfied x==y(j) for some j
> where x and y are row vectors.
> I am using
> z=[]
> for i=1 :size(y,2)
> 	z=[z,find(x==y(j))
> end
> If there is a simpler code which use find method please teach me.
intersect() : http://help.scilab.org/docs/5.5.2/en_US/intersect.html

HTH
SG




More information about the users mailing list