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

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

[Octave-bug-tracker] [bug #50485] textscan() behavior incompatible with


From: sergey plotnikov
Subject: [Octave-bug-tracker] [bug #50485] textscan() behavior incompatible with matlab in case of empty lines
Date: Tue, 7 Mar 2017 12:30:04 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

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

                 Summary: textscan() behavior incompatible with matlab in case
of empty lines
                 Project: GNU Octave
            Submitted by: nul0m
            Submitted on: Tue 07 Mar 2017 05:30:00 PM UTC
                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: 4.2.1
        Operating System: Any

    _______________________________________________________

Details:

*textscan* seems to ignore the content of the scanned text after an empty
line

matlab:

>> s = textscan(sprintf('2,1,\n,,\n2,,3'),'',-1,'delimiter',','); s{:}
ans =
     2
   NaN
     2
ans =
     1
   NaN
   NaN
ans =
   NaN
   NaN
     3


octave:

 s = textscan(sprintf('2,1,\n,,\n2,,3'),'',-1,'delimiter',','); s{:}
ans =  2
ans =  1





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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