help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug in textread


From: João Rodrigues
Subject: Re: Possible bug in textread
Date: Sun, 27 Oct 2013 12:12:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 27-10-2013 11:06, Andreas Weber wrote:
Am 27.10.2013 11:54, schrieb João Rodrigues:
Hi,
I was experimenting with textread and got what I believe to be a bug.
If the contents of test.dat are:

A B C
a 10 100
b 20 200
c 30 300
d 40 400
e 50 500

the command:

[a,b,c] = textread('test.dat', '%s %d %d', 'headerlines', 1)

yields:

error: textread: A(I): index out of bounds; value 1 out of bound 0
error: called from:
error:   /usr/share/octave/3.6.4/m/io/textread.m at line 75, column 3

<snip>
My octave version is 3.6.4.

Hi Joao,
your example works for me with the current development source so I guess
one of the bugfixes
http://hg.savannah.gnu.org/hgweb/octave/log/49a5a4be04a1/scripts/io/textread.m
fixed this. Can you wait some weeks until octave 3.8 is released?

I'm glad it's already solved. And I can wait, of course.


btw: please stop thread hijacking (Don't replay to an existing post and
change the subject, rather open a new thread)
Regards, Andy
Of course, it won't happen again. Thank you pointing out the etiquette breach.
joao


reply via email to

[Prev in Thread] Current Thread [Next in Thread]