from octave to python

Discussion in 'Python' started by invis, Jul 14, 2012.

  1. invis

    invis Guest

    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 :)
     
    invis, Jul 14, 2012
    #1
    1. Advertising

  2. invis

    invis Guest

    Ñуббота, 14 Ð¸ÑŽÐ»Ñ 2012 г., 15:27:24 UTC+4 пользователь invis напиÑал:
    > 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 :)


    Answer here:
    http://stackoverflow.com/questions/11483863/python-intersection-indices-numpy-array
     
    invis, Jul 14, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    4,534
    Kim Hansen
    Oct 8, 2009
  2. Replies:
    0
    Views:
    773
  3. Paul Moore
    Replies:
    0
    Views:
    655
    Paul Moore
    Mar 1, 2008
  4. Martin v. Löwis
    Replies:
    0
    Views:
    692
    Martin v. Löwis
    Mar 1, 2008
  5. Caj Zell

    range as in MATLAB/octave

    Caj Zell, Jun 20, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    96
    Anno Siegel
    Jun 20, 2004
Loading...

Share This Page