[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: |
Fri, 9 Jun 2017 05:28:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
Follow-up Comment #8, bug #51187 (project octave):
IIRC correctly (I already tried that this week) Matlab returns a single 1. In
the online ML docs there's a similar example.
Later today I'll verify.
I attach a preliminary fix using a for loop (yes, ugly, but I couldn't find a
vectorized way to convert a char array into a cellstr array w/o truncation
trailing whitespace)
I have another case that needs attention and that I was busy trying to fix as
well:
abc = ['a '; 'b '; 'c ']
ismember (abc, {abc})
Matlab (r2016b):
ans =
1
1
1
Octave, with the attached patch:
ans =
1
0
0
(file #40891)
_______________________________________________________
Additional Item Attachment:
File name: ismember_bug51178_#2.cset Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51187>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Dave Goel, 2017/06/06
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/06
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/06
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/06
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, John W. Eaton, 2017/06/06
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Guillaume, 2017/06/07
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/07
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Rik, 2017/06/08
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/09
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Rik, 2017/06/09
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/09
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Rik, 2017/06/09
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/10
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/13
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Rik, 2017/06/13
- [Octave-bug-tracker] [bug #51187] ISMEMBER fails if the string ends in a space:, Philip Nienhuis, 2017/06/14