[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: vectorization
From: |
David Pruitt |
Subject: |
RE: vectorization |
Date: |
Wed, 4 Dec 2002 12:31:25 -0600 |
In my case, I can assure both conditions. Thanks so much for your help.
-----Original Message-----
From: Kai Habel [SMTP:address@hidden
Sent: Wednesday, December 04, 2002 12:20 PM
To: address@hidden
Subject: Re:vectorization
Take a look at lookup.m at the octave-forge repository.
If every element of i_num is in v_num and i_num is monotone you can use it out
of the box, otherwise you have to adapt it for your purposes.
octave:12> inum=[1 3 4 6 7 10 15];
octave:13> vnum=[4 10];
octave:14> lookup(inum,vnum)
ans =
3 6
Bye Kai
-------------------------------------------------------------
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
-------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------