[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29786] Data file can not be loaded in Octave
From: |
Beat Fasel |
Subject: |
[Octave-bug-tracker] [bug #29786] Data file can not be loaded in Octave |
Date: |
Thu, 06 May 2010 08:16:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9 |
Follow-up Comment #1, bug #29786 (project octave):
As noted in my intial bug report, Matlab is able to load the data structure
generated in Octave, while Octave can not read it anymore. However, looking at
the data structure loaded in Matlab I noticed that the data in the struct
array is being shifted around. First entry:
matchdata(1)
ans =
matchloc1: [219 313]
matchloc2: [267 87]
nbmatches: 1
votecenter: [81 278]
voteloc1: [231 307]
voteloc2: [279 81]
votemat: [884x1047 double]
Entry 200:
matchdata(200)
ans =
matchloc1: [884x1047 double]
matchloc2: [2x2 double]
nbmatches: [2x2 double]
votecenter: 2
voteloc1: [250 203]
voteloc2: [2x2 double]
votemat: [2x2 double]
I tested further and found when storing in Octave's native binary format
(-binary), this bug does not occur. However, if data is stored in either the
v6 or v7 Matlab format, the stored data format seems to be incorrect.
I attach a simple a file (testvotedata.m) that allows to generate faulty data
with the option v6 (outtype 2) and v7 (outtype 1) and correct data with
-binary (outtype 3).
(file #20464)
_______________________________________________________
Additional Item Attachment:
File name: testvotedata.m Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29786>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29786] Data file can not be loaded in Octave, anonymous, 2010/05/05
- [Octave-bug-tracker] [bug #29786] Data file can not be loaded in Octave,
Beat Fasel <=
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, Rik, 2010/05/08
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, Beat Fasel, 2010/05/08
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, David Bateman, 2010/05/10
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, Rik, 2010/05/10
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, David Bateman, 2010/05/11
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, David Bateman, 2010/05/11
- [Octave-bug-tracker] [bug #29786] Octave does not save sparse matrices correctly in -mat format, Beat Fasel, 2010/05/12