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?