Re: [Scilab-users] get the intersect x and y
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 mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] get the intersect x and y
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 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] get the intersect x and y
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. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] get the intersect x and y
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: http://mailinglists.scilab.org/Re-get-the-intersect-x-and-y-tp4032872p4032873.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users