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

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

[Octave-bug-tracker] [bug #47458] textscan.cc Matlab incompatibility


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #47458] textscan.cc Matlab incompatibility
Date: Fri, 18 Mar 2016 19:04:34 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38

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

                 Summary: textscan.cc Matlab incompatibility
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Fri 18 Mar 2016 08:04:33 PM CET
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

With new textscan.cc in dev:

>> textscan (['Empty' char(10)], 'Empty%f %f')
ans =
{
  [1,1] = [](0x1)
  [1,2] = [](0x1)
}


Expected is {NaN, NaN}.

Adding any digit goes some way in the right direction:

>> textscan (['Empty1' char(10)], 'Empty%f %f')
ans =
{
  [1,1] =  1
  [1,2] = NaN
}


Matlab r2016a prerelease gives:
+verbatim-
>> format compact
>> U = textscan (['Empty' char(10)], 'Empty%f %f')
U = 
    [NaN]    [NaN]






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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