|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #42562] 3.8.1 can't load mat file (>maltab r2010b) |
Date: | Mon, 16 Jun 2014 08:44:56 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36 |
Follow-up Comment #14, bug #42562 (project octave): Juan Pablo, a possible shorter version of your patch. diff --git a/libinterp/corefcn/ls-mat5.cc b/libinterp/corefcn/ls-mat5.cc --- a/libinterp/corefcn/ls-mat5.cc +++ b/libinterp/corefcn/ls-mat5.cc @@ -668,6 +668,7 @@ int ndims = dim_len / 4; dims.resize (ndims); + dims(1) = 1; // dims.length () is always min. 2, so set n x 1 if ndims == 1 for (int i = 0; i < ndims; i++) { int32_t n; _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?42562> _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |