[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38317] Textread gives different results in MA
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #38317] Textread gives different results in MATLAB and Octave |
Date: |
Tue, 12 Feb 2013 17:03:19 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20130108 conkeror/1.0pre |
URL:
<http://savannah.gnu.org/bugs/?38317>
Summary: Textread gives different results in MATLAB and
Octave
Project: GNU Octave
Submitted by: None
Submitted on: Tue 12 Feb 2013 05:03:17 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello.
(The file deaths.txt is attached.)
If i issue the following command in MATLAB, I get this result:
>> textread('deaths.txt', '', 'headerlines', 3)
ans =
0 5.6900 4.3700
1.0000 0.5800 0.5900
2.0000 0.4300 0.4200
3.0000 0.3100 0.2900
4.0000 0.2300 0.2100
5.0000 0.1800 0.1500
6.0000 0.1500 0.1200
7.0000 0.1500 0.1000
8.0000 0.1500 0.1000
9.0000 0.1700 0.0600
10.0000 0.2000 0.0600
11.0000 0.1900 0.0800
12.0000 0.2000 0.0900
13.0000 0.2600 0.1400
14.0000 0.3000 0.1800
15.0000 0.4400 0.2500
16.0000 0.5900 0.2700
17.0000 0.7500 0.2900
18.0000 0.8600 0.3400
19.0000 0.8600 0.3500
20.0000 0.8300 0.3500
21.0000 0.8200 0.3100
22.0000 0.8100 0.2700
23.0000 0.8300 0.2700
24.0000 0.8600 0.2700
...
In Octave however, I get this result:
octave:1> textread('deaths.txt', '', 'headerlines', 3)
ans =
0.00000
5.69000
4.37000
1.00000
0.58000
0.59000
2.00000
0.43000
0.42000
3.00000
0.31000
0.29000
4.00000
0.23000
0.21000
5.00000
0.18000
0.15000
6.00000
0.15000
0.12000
7.00000
0.15000
0.10000
8.00000
0.15000
0.10000
9.00000
0.17000
0.06000
10.00000
0.20000
0.06000
11.00000
0.19000
...
Is this a bug or a feature? Should they behave the same?
Thank you.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 12 Feb 2013 05:03:17 PM UTC Name: deaths.txt Size: 4kB By: None
<http://savannah.gnu.org/bugs/download.php?file_id=27451>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38317>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38317] Textread gives different results in MATLAB and Octave,
anonymous <=
- [Octave-bug-tracker] [bug #38317] Textread gives different results in MATLAB and Octave, Philip Nienhuis, 2013/02/12
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Philip Nienhuis, 2013/02/12
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Stig, 2013/02/13
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Philip Nienhuis, 2013/02/13
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Stig, 2013/02/13
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Philip Nienhuis, 2013/02/13
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Philip Nienhuis, 2013/02/14
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Stig, 2013/02/16
- [Octave-bug-tracker] [bug #38317] textread & textscan give different results in MATLAB and Octave, Stig, 2013/02/16
- [Octave-bug-tracker] [bug #38317] textread & textscan: different results for empy format strings than MATLAB, Philip Nienhuis, 2013/02/24