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

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

[Octave-bug-tracker] [bug #54432] strmatch incompatibilities with Matlab


From: Rik
Subject: [Octave-bug-tracker] [bug #54432] strmatch incompatibilities with Matlab when using empty inputs
Date: Fri, 3 Aug 2018 14:14:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Update of bug #54432 (project octave):

                Priority:              5 - Normal => 3 - Low                
                  Status:               Need Info => Confirmed              
                 Summary: strmatch incompatibilities with Matlab => strmatch
incompatibilities with Matlab when using empty inputs

    _______________________________________________________

Follow-up Comment #5:

The other bit about an empty string always matching is just weird.  Trying to
deduce the exact ruleset is tedious, and this function is strongly recommended
not to be used by Matlab.  As such, there's not much incentive to work on it.

If someone wants to amend strmatch, they need to also take in to account
results from bug #49601 which are equally bizarre. 


>> strmatch(ones(1,1),ones(0,0))
ans =
     []
>> strmatch(ones(0,0),ones(1,1))
ans =
     1
>> strmatch(ones(0,1,0,0),ones(1,1))
ans =
     1



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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