From bug-octave-request at bevo dot che dot wisc dot edu Thu Feb 5 14:23:22 2004 Subject: Re: Warnings when loading strings stored in MAT5 format From: Luke Sjulson To: Quentin Spencer Cc: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 5 Feb 2004 15:19:24 -0500 There's a variable called warn_num_to_str, which can be set to zero. This will disable the warning. You can put the line warn_num_to_str = 0; in your .octaverc file, and that should take care of it. Luke On Feb 5, 2004, at 3:04 PM, Quentin Spencer wrote: > This is more an annoyance than a bug, since loading and saving works > properly for my application. However, when I save string data in a > MATLAB file, I get warnings about conversion from matrix to string > when reloading, as shown below (version 2.1.53, Linux): > > oct 1> a="test"; > oct 2> save temp.mat a > oct 3> clear > oct 4> load temp.mat > warning: implicit conversion from matrix to string > oct 5> a > a = test > > I'm currently doing an application where I'm loading files that have > hundreds of strings in them and I get the warning message repeated for > each string. If this message is important for anything, it would be > nice to have a builtin variable to turn the warnings off. > > -Quentin > > > > ------------------------------------------------------------- > 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 -------------------------------------------------------------