[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -f
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file |
Date: |
Fri, 03 May 2013 19:02:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
Follow-up Comment #8, bug #38870 (project octave):
The program is an in-laboratory code, which is not distributed to any other
place. In such, the trouble is local. I think I am the first one who has tried
to use the output in Octave.
However, I noticed that xxxxxxx and yyyyyy variables had no trouble loading
correctly all the time. The trouble is with the single letter names.
I went through the ls-mat5.cc and I think the problem is line
696 (reading variable name):
is.seekg (tmp_pos + static_cast<std::streamoff> (PAD (len)));
PAD is defined as (len > 0 && len <= 4) ? 4 : ((l+7)/8)*8; For the 1 char
variables this gives padding of 4 and not proper 7. The padding should here be
just ((l+7)/8)*8 without the iffing (and probably in a few other places where
small data fragments might occur).
This also explains why the parser sees the "type" as 0 (padding) instead of 9
(and the 9 will become data length).
Could either of you check this out? I don't have source code of Octave nor
idea how to get a version.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38870>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/02
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/02
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Mike Miller, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Mike Miller, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Jordi Gutiérrez Hermoso, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Mike Miller, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file,
anonymous <=
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Jordi Gutiérrez Hermoso, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Mike Miller, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/03
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/05
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Jordi Gutiérrez Hermoso, 2013/05/06
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, Jordi Gutiérrez Hermoso, 2013/05/06
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, anonymous, 2013/05/06
- [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file, John W. Eaton, 2013/05/16