From bug-octave-request at bevo dot che dot wisc dot edu Mon Feb 2 16:59:36 2004 Subject: Re: bug in load-save.cc in 2.1.53 From: Luke Sjulson To: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 2 Feb 2004 17:55:18 -0500 It works! Thanks for the quick reply. Luke On Feb 2, 2004, at 1:31 PM, John W. Eaton wrote: > 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 > ------------------------------------------------------------- > > -- Lucas L. Sjulson Cornell/Rockefeller/Sloan-Kettering MD/PhD Program Laboratory of Neural Systems (Miesenboeck Lab) Department of Structural Biology Memorial Sloan-Kettering Cancer Center 1275 York Avenue, Box 205 New York, NY 10021 tel: 212-639-5135 fax: 212-794-6236 ------------------------------------------------------------- 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 -------------------------------------------------------------