[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43393] "importdata" fails on space delimited
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #43393] "importdata" fails on space delimited exp numbers |
Date: |
Thu, 09 Oct 2014 19:56:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 |
URL:
<http://savannah.gnu.org/bugs/?43393>
Summary: "importdata" fails on space delimited exp numbers
Project: GNU Octave
Submitted by: None
Submitted on: Do 09 Okt 2014 19:56:11 UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: Any
_______________________________________________________
Details:
Here is how to reproduce the behavior:
Take a text file with space delimited numbers in exponential notation.
Something like this (testdata.txt):
2.00E+002 4.00E-004
Then, use the "importdata" command to import those numbers:
filename = 'testdata.txt';
data1 = importdata(filename,' ') % OK
data2 = importdata(filename) % wrong
The first command (with the explicit space delimiter) works fine. The second
one (without a specified delimiter) produces a wrong result:
data1 =
2.0000e+02 4.0000e-04
data2 =
2 + 0i 2 + 4i -4 + 0i
This happens with the Octave 3.8.2 release both in the Linux and in the
Windows (MXE) version.
In Matlab both versions of the importdata command return the same and correct
result.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43393>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43393] "importdata" fails on space delimited exp numbers,
anonymous <=