[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36500] cvsread/dlmread behavior for empty val
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36500] cvsread/dlmread behavior for empty values |
Date: |
Sat, 19 May 2012 21:24:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19 |
URL:
<http://savannah.gnu.org/bugs/?36500>
Summary: cvsread/dlmread behavior for empty values
Project: GNU Octave
Submitted by: None
Submitted on: Sa 19 Mai 2012 21:24:01 UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.1
Operating System: GNU/Linux
_______________________________________________________
Details:
address@hidden ~]$ echo "MW,,3.4,5.5" > test.csv
strictly speaking column 1 and 2 are NaN
first let's take a look what matlab did :)
>> csvread('test.csv')
Error using dlmread (line 139)
Mismatch between file and format string.
Trouble reading number from file (row 1u, field 1u) ==> MW,,3.4,5.5\n
Error in csvread (line 48)
m=dlmread(filename, ',', r, c);
>>
and what octave did
octave:1> csvread('test.csv')
ans =
0.00000 0.00000 3.40000 5.50000
octave:2>
for me, this is fine too and there is no need to copy matlab behavior! but
maybe there should be an option how octave should handle empty values?
parse them as NaN or parse them as 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36500>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36500] cvsread/dlmread behavior for empty values,
anonymous <=