[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41579] HeaderLines parameter in textscan diff
From: |
Jérôme |
Subject: |
[Octave-bug-tracker] [bug #41579] HeaderLines parameter in textscan different between Octave and ML |
Date: |
Thu, 13 Feb 2014 14:55:25 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 |
URL:
<http://savannah.gnu.org/bugs/?41579>
Summary: HeaderLines parameter in textscan different between
Octave and ML
Project: GNU Octave
Submitted by: jeromegnu
Submitted on: jeu. 13 févr. 2014 14:55:24 GMT
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.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Hi.
It seems the HeaderLines parameter in textscan behaves differently between
Matlab end Octave.
In the attached script, I test whether I'm using ML or Octave to get the same
result.
My algo does the following :
- Read first line as headers
- Read all lines from the third, which are value. The second header line is
ignored.
In ML, I need to enter HeaderLines=2, as if the pointer was still at the end
of line 1. On Octave, I need to enter HeaderLines=1, as if the pointer was
already at the beginning of line 2.
Hopefully, the example will make this clearer.
Here's the result on Octave 3.8 and ML 8.2.0.701 (R2013b) :
octave:15> test
{
[1,1] = year
[1,2] = day in year
[1,3] = day in month
[1,4] = month
[1,5] = hour
}
1900 1 1 1 1
1900 1 1 1 2
>> test
'year' 'day in year' 'day in month' 'month' 'hour'
1900 1 1 1 1
1900 1 1 1 2
They are the same, thanks to the test in the code. The HeaderLines parameter
differ.
As a sidenote, the behaviour un Octave seems more logical to me... Should I
submit the bug to ML ?
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: jeu. 13 févr. 2014 14:55:24 GMT Name: test.m Size: 467 o By:
jeromegnu
<http://savannah.gnu.org/bugs/download.php?file_id=30535>
-------------------------------------------------------
Date: jeu. 13 févr. 2014 14:55:24 GMT Name: test.txt Size: 79 o By:
jeromegnu
<http://savannah.gnu.org/bugs/download.php?file_id=30536>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41579>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41579] HeaderLines parameter in textscan different between Octave and ML,
Jérôme <=