[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64074] importdata does not like empty fields
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #64074] importdata does not like empty fields |
Date: |
Thu, 20 Apr 2023 05:00:14 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64074>
Summary: importdata does not like empty fields
Group: GNU Octave
Submitter: None
Submitted: Thu 20 Apr 2023 09:00:12 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email: reza.housseini@gmail.com
Open/Closed: Open
Release: 8.1.0
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 20 Apr 2023 09:00:12 AM UTC By: Anonymous
When calling importdata on a csv file with empty fields, octave groups them
all in a single column:
this csv "myfile.csv"
title;casename;0
;;
load case;;
height;h;1.3
with this call
A=importdata("myfile.csv")
produces this output
A =
{
[1,1] = title;casename;test;0
[2,1] = ;;;
[3,1] = load case;;;
[4,1] = height;h;m;1.3
}
while matlab produces this output
A =
scalar structure containing the fields:
data =
0
NA
NA
1.3000
textdata =
{
[1,1] = title
[2,1] =
[3,1] = load case
[4,1] = height
[1,2] = casename
[2,2] =
[3,2] =
[4,2] = h
}
which I would also expect from octave
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64074>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64074] importdata does not like empty fields,
anonymous <=
- Message not available
- [Octave-bug-tracker] [bug #64074] importdata does not like empty fields, anonymous, 2023/04/20
- Message not available
- [Octave-bug-tracker] [bug #64074] importdata does not like empty fields, John W. Eaton, 2023/04/20
- [Octave-bug-tracker] [bug #64074] importdata does not like empty fields, A.R. Burgers, 2023/04/21
- [Octave-bug-tracker] [bug #64074] importdata does not like empty fields, anonymous, 2023/04/21
- Message not available
- [Octave-bug-tracker] [bug #64074] importdata returns column vector of textdata when there is an empty field in the imported data, Rik, 2023/04/21
- [Octave-bug-tracker] [bug #64074] importdata returns column vector of textdata when there is an empty field in the imported data, Rik, 2023/04/21