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

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

[Octave-bug-tracker] [bug #43649] strfind returns matches for empty patt


From: Andreas Weber
Subject: [Octave-bug-tracker] [bug #43649] strfind returns matches for empty pattern
Date: Thu, 20 Nov 2014 16:23:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0

URL:
  <http://savannah.gnu.org/bugs/?43649>

                 Summary: strfind returns matches for empty pattern
                 Project: GNU Octave
            Submitted by: andy1978
            Submitted on: Do 20 Nov 2014 16:23:22 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: Any

    _______________________________________________________

Details:

Octave 3.8.2 and default returns


octave:1> strfind ('foo', '')
ans =
   1   2   3   4


whereas MATLAB R2014a returns empty


>> strfind ('foo', '')
ans =
     []


which is more intuitive for me.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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