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

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

[Octave-bug-tracker] [bug #38711] dlmread add extra zero line when file


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #38711] dlmread add extra zero line when file contains "\0" at the end.
Date: Fri, 1 Jul 2016 01:42:56 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #9, bug #38711 (project octave):


>> version
ans =
8.2.0.701 (R2013b)
>> x = dlmread ('/tmp/tst_null2.csv', ',')
Error using dlmread (line 139)
Mismatch between file and format string.
Trouble reading number from file (row 3u, field 1u) ==>
 


(Note that the line after ==> has a single space in it.)

It looks Matlab can't read files with \0 at all.  That is consistent with the
help, which says


All data in the input file must be numeric. dlmread does not operate 
on files containing nonnumeric data, even if the specified rows and
columns for the read contain numeric data only.


It seems we are unconstrained by Matlab compatibility on this one.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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