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

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

[Octave-bug-tracker] [bug #42025] dlmread doesn't properly treat leading


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #42025] dlmread doesn't properly treat leading space as empty values for space delimiter
Date: Tue, 01 Apr 2014 21:08:28 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1

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

                 Summary: dlmread doesn't properly treat leading space as
empty values for space delimiter
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Tue 01 Apr 2014 11:08:27 PM CEST
                Category: Libraries
                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:

File imp3.txt:

1 11
 22
3 33

(no trailing spaces after 2nd column)

Octave:

>> dlmread ('imp3.txt', ' ')
ans =

    1   11
   22    0
    3   33

>> dlmread ('imp3.txt')
ans =

    1   11
   22    0
    3   33


ML r2012a gives for first call (correctly, I think):

1   11
0   22
3   33

and for the second (w/o specified delimiter)

 1   11
22    0
 3   33

so Octave is ML-compatible in the second case.

(FYI, I've seen bug #32260. That is about dlm behavior for leading whitespace
when no delimiter is specified)





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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