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: Mike Miller
Subject: Re: Wrong indices returned using Lookup for cells containing strings
Date: Wed, 21 Oct 2015 09:54:31 -0400
User-agent: Mutt/1.5.24 (2015-08-30)

On Wed, Oct 21, 2015 at 08:21:28 -0400, Nicholas Jankowski wrote:
> Hmm, then why did I get the same output for
> 
> >> lookup(a,b)
> 
> And
> 
> >> lookup(sort(a),b)

When you sort(a), the correct answers are indices 1 and 3 ("WEAK"
becomes index 3).

When a is unsorted, behavior is undefined as "help lookup" says.

-- 
mike



reply via email to

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