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

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

[Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:
Date: Tue, 6 Jun 2017 08:12:41 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

Update of bug #51187 (project octave):

                  Status:               Confirmed => Patch Submitted        

    _______________________________________________________

Follow-up Comment #3:

The attached cset helps, but I'm unsure if it is the right fix.

Its effect is that it simply turns character arguments (#1 and/or #2) of
ismember.m into a plain 1x1 cell array. AFAICS it also works with char arrays
but I haven't tested it extensively.

The underlying problem is that cellstr() drops trailing spaces (BTW Matlab
does the same), so we must somehow avoid cellstr() or implement a way to add
back trailing spaces after a call to cellstr() (which will probably boil down
to a kludge).


(file #40863)
    _______________________________________________________

Additional Item Attachment:

File name: bug51187_ismember.cset         Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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