octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #33537] lower function returns incorect result


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #33537] lower function returns incorect result on numerical values
Date: Sun, 12 Jun 2011 16:35:20 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Follow-up Comment #3, bug #33537 (project octave):

I do not think that anyone would say that Matlab
is "right" in this case:

Matlab says, for more examples:

lower([ 90 100])

ans =

    90   100
>>
but also:
>> lower([ 90 100 'ABC'])

ans =

zdabc

>> 
This matches Octave!

Other experiments may be a good idea, but this is not
worth much time, I think.  A simple solution for the
case above would be isnumeric() applied to the argument
and then do as Matlab seems to do.

Regardless of Matlab, I do not think that Octave doing:
octave:35> lower(64)
ans = @
octave:36> lower(65)
ans = a
octave:37> 
is very helpful.  Probably, Matlab choice would be better.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33537>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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