help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy about Matrices


From: Mike Miller
Subject: Re: Easy about Matrices
Date: Tue, 19 Apr 2005 12:28:25 -0500 (CDT)

On Tue, 19 Apr 2005, Peter Bodin wrote:

How about

find(ismember(X,Y))
ans =

       2
       3
       4
       6
       9
      10
      11

provided that you have the functions from octave-forge.


Wow.  That is very nice.  I found ismember here:

http://users.powernet.co.uk/kienzle/octave/matcompat/scripts/set/ismember.m

That's the kind of cleverness I was looking for. The "Magic:" section is a nice lesson for anyone who wants to increase his/her Octave IQ.

Mike



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]