From bug-octave-request at bevo dot che dot wisc dot edu Sun Feb 1 14:58:41 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: Sun, 1 Feb 2004 15:54:41 -0500 --Apple-Mail-7-724916939 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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. thanks, Luke --Apple-Mail-7-724916939 Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; x-unix-mode=0700; name="wotan.mat" Content-Disposition: attachment; filename=wotan.mat TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IEdMTlg4NiwgQ3JlYXRlZCBvbjogRnJpIEph biAzMCAxMzozMjo1MiAyMDA0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIAABSU0OAAAAMAEAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAEAAAACAAAAAQAA AAUAAAB3b3RhbgAAAAUABAAGAAAAAQAAAAwAAAB3YWx5egBraWxsAAAAAAAADgAAADAAAAAGAAAA CAAAAAYAAAAAAAAABQAAAAgAAAABAAAAAQAAAAEAAAAAAAAAAgABAAMAAAAOAAAAMAAAAAYAAAAI AAAABgAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAACAAEAAgAAAA4AAAAwAAAABgAAAAgA AAAGAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAAIAAQAEAAAADgAAADAAAAAGAAAACAAA AAYAAAAAAAAABQAAAAgAAAABAAAAAQAAAAEAAAAAAAAAAgABAAQAAAA= --Apple-Mail-7-724916939 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Jan 31, 2004, at 10:25 PM, David Bateman wrote: > There were lots of changes to the load/save support between 2.1.52 and > 2.1.53. However, these affacted the HDF5, octave ascii and binary > formats, > and should not have affected at all the matlab formats. So I don't see > how these changes could be the cause of the problem. > > As I'm away at the moment and have no access to matlab I can't even > test > the issue. In any case can you tell me whether it is a matlab ascii or > binary format that shows the problem... > > D. > > > According to Luke Sjulson (on 01/30/04): >> hello, >> >> I was having problems loading in a .mat file from matlab that has a >> structure in it in 2.1.53. Interestingly, this works in 2.1.52. If, >> in matlab, you do the following commands: >> >> wotan(1).walyz = 1; >> wotan(2).walyz = 2; >> wotan(1).kill = 1; >> wotan(2).kill = 2; >> save wotan wotan >> >> and then try to load wotan.mat in octave 2.1.53, you get >> >> error: invalid structure assignment >> >> but it works in octave 2.1.52. I don't know if this is exactly a >> "bug" >> or not, but it is a matlab incompatibility. I suspect the fix is >> pretty trivial, but I'm not so good at c++ so hopefully someone can >> figure it out. >> >> btw, does anyone know how to shut off the matlab incompatibility >> warnings you get in 2.1.53 when you run octave --traditional? >> >> thanks a lot, >> >> -- >> 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 >> ------------------------------------------------------------- > > -- > David Bateman David dot Bateman at motorola dot com > Motorola CRM +33 1 69 35 48 04 (Ph) > Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) > 91193 Gif-Sur-Yvette FRANCE > > The information contained in this communication has been classified as: > > [x] General Business Information > [ ] Motorola Internal Use Only > [ ] Motorola Confidential Proprietary > > > > ------------------------------------------------------------- > 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 --Apple-Mail-7-724916939-- ------------------------------------------------------------- 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 -------------------------------------------------------------