help-octave
[Top][All Lists]
Advanced

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

Re: Wrong indices returned using Lookup for cells containing strings


From: Olaf Till
Subject: Re: Wrong indices returned using Lookup for cells containing strings
Date: Wed, 21 Oct 2015 15:55:37 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Oct 21, 2015 at 08:21:28AM -0400, Nicholas Jankowski wrote:
> On Oct 21, 2015 7:43 AM, "Francesco Potortì" <address@hidden> wrote:
> >
> > >So sorting seems to solve the problem. Thank you guys.
> >
> > Yes.  When doing lookup(TABLE, Y), TABLE must be sorted.  This is not
> > clear from the docs, I filed a bug report.
> >
> 
> Hmm, then why did I get the same output for
> 
> >> lookup(a,b)
> 
> And
> 
> >> lookup(sort(a),b)

Although it's the same, it's correct in the second case and wrong (due
to wrong usage) in the first.

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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