from octave to python

invis invis87 at gmail.com
Sat Jul 14 07:27:24 EDT 2012


Hello everyone !

I used Octave for matrix computations, but looks like Python will be useful everywhere so it is good idea to migrate (imho ofc).

But I am novice here and dont know how to get things that was easy in Octave, for example:
[intersect iA iB] = intersect(a, b)

To do this in Python I use numpy.intersect1d(numpy.array, numpy.array), but how to get indexces ?

P.S. sry for my english, hope you can understand what I mean :)



More information about the Python-list mailing list