Re: [Scilab-users] get the intersect x and y

2015-09-19 Thread Samuel Gougeon
Le 19/09/2015 18:47, fujimoto2005 a écrit : Is there any function f(a,b) which return ka where [x,ka,kb]=intersect(a,b). I want to get only ka. It's not possible. The first argout can't be skipped, just ignored: [trash, ka] = intersect(a,b) ___ users

Re: [Scilab-users] get the intersect x and y

2015-09-19 Thread Samuel Gougeon
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.

Re: [Scilab-users] get the intersect x and y

2015-09-19 Thread fujimoto2005
Hello Thanks a lot. Best regrds Fujimoto -- View this message in context: http://mailinglists.scilab.org/Re-get-the-intersect-x-and-y-tp4032872p4032876.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.

Re: [Scilab-users] get the intersect x and y

2015-09-19 Thread fujimoto2005
Hello Samuel Thnks a lot. This is exactry what I want. Is there any function f(a,b) which return ka where [x,ka,kb]=intersect(a,b). I want to get only ka. Best regards Fujimoto -- View this message in context: