From bug-octave-request at bevo dot che dot wisc dot edu Mon Feb 2 12:32:52 2004 Subject: Re: bug in load-save.cc in 2.1.53 From: "John W. Eaton" To: Luke Sjulson Cc: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 2 Feb 2004 12:31:38 -0600 On 1-Feb-2004, Luke Sjulson wrote: | It is with the binary .mat format. I'm attaching a very small example | of a .mat file that will load in 2.1.52 but not 2.1.53. Please try the following patch. Thanks, jwe 2004-02-02 John W. Eaton * oct-map.cc (Octave_map::assign (const std::string, const Cell&)): Set dimensions to RHS dimensions, not 1x1. Index: src/oct-map.cc =================================================================== RCS file: /usr/local/cvsroot/octave/src/oct-map.cc,v retrieving revision 1.30 diff -u -r1.30 oct-map.cc --- src/oct-map.cc 16 Dec 2003 05:11:26 -0000 1.30 +++ src/oct-map.cc 2 Feb 2004 18:30:08 -0000 at @ -235,7 +235,7 @@ { map[k] = rhs; - dimensions = dim_vector (1, 1); + dimensions = rhs.dims (); } else { ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------