|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #38870] load reads stochastic data from MAT -file |
Date: | Fri, 03 May 2013 17:17:25 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Follow-up Comment #7, bug #38870 (project octave): I looked at this file a bit too. I think the problem may be that the "type" codes for the matrices in the file are set to 0 instead of miDOUBLE. This does not seem like a valid format, at least according to the parser in Octave. The case statements in ls-mat5.cc simply fall through and don't read any data into the uninitialized matrices, which is probably why they are appearing as random values. I inserted something like if (!type) type = miDOUBLE; somewhere around here: http://hg.savannah.gnu.org/hgweb/octave/file/6698d0c42fbf/libinterp/interp-core/ls-mat5.cc#l1395 and get consistent values every time. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?38870> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |