[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32066] textscan error
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #32066] textscan error |
Date: |
Tue, 18 Jan 2011 18:51:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 |
Follow-up Comment #5, bug #32066 (project octave):
Thanks for looking into this but I'm really puzzled...
Using the developers sources, nothing works for textscan:
octave:1> test textscan
***** test
str = "1, 2, 3, 4n 5, , , 8n 9, 10, 11, 12";
fmtstr = "%f %d %f %s";
c = textscan (str, fmtstr, 2, "delimiter", ",", "emptyvalue", -Inf);
assert (isequal (c{1}, [1;5]))
assert (length (c{1}), 2);
assert (iscellstr (c{4}))
assert (isequal (c{3}, [3; -Inf]))
!!!!! test failed
strread: FORMAT does not match data
For the example I sent, I get:
t = textscan('aaa.bbb','%s','delimiter','.');
error: strread: FORMAT does not match data
error: called from:
error: /.../octave/scripts/io/strread.m at line 235, column 11
error: /.../octave/scripts/io/textscan.m at line 106, column 15
are we talking about the same files ?!?
Concerning the output, it's as it should be (a cell array containing a cell
array) and matches with MATLAB.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32066>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #32066] textscan error, Guillaume, 2011/01/06
- [Octave-bug-tracker] [bug #32066] textscan error, Guillaume, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, Ben Abbott, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, Ben Abbott, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, Ben Abbott, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error,
Guillaume <=
- [Octave-bug-tracker] [bug #32066] textscan error, Ben Abbott, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, Guillaume, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, Doug Stewart, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, John W. Eaton, 2011/01/18
- [Octave-bug-tracker] [bug #32066] textscan error, John W. Eaton, 2011/01/19
- [Octave-bug-tracker] [bug #32066] textscan error, Guillaume, 2011/01/19