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

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

[Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings ins


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #50813] importdata returns cell-of-strings instead of struct
Date: Tue, 18 Apr 2017 15:45:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #6, bug #50813 (project octave):

Yes, please leave this open.

How does Matlab recognize column headers when they contain spaces and the
field separator is also spaces?  Does it do some paren matching?  There must
be some kind of fuzzy matching/guessing that it is doing.

Also, how does it know to skip the line of "-" characters?  Again, some kind
of guesswork?  A human can easily tell what the header is.  Maybe Matlab looks
for the first line that has something that looks like a row of numbers?  I
don't know.

I downloaded the file and it appears to be 9+MB.  I truncated it to 10 lines
of data and uploaded it.  It should be attached to this comment.  The
abbreviated file still shows the same problem, so we don't really need all the
extra lines for this report.

OTOH, I also noticed that importdata is quite slow for large files of only
numbers (I removed the header lines to see what it would do with this file). 
But that should probably be a separate report.


(file #40439)
    _______________________________________________________

Additional Item Attachment:

File name: Plot5G.txt                     Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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