From bug-request at octave dot org Sat Jan 14 04:03:40 2006 Subject: Re: [OctDev] Proposed changes to cell2mat and inclusion in Octave From: David Bateman To: etienne at cs dot uky dot edu, etienne@isr.ist.utl.pt, etienne.grossmann@laposte.net CC: Paul Kienzle , Mazet Laurent-ALM002 , "\"@az33exr02.mot.com" Date: Sat, 14 Jan 2006 10:57:51 +0100 Etienne Grossmann a écrit : > > Hello, > > both cell2mat({1, 2, 3}) and cell2mat({1; 2; 3}) fail w/ 2.9.3. > ====================================================================== > octave:12> cell2mat({1; 2; 3}) > > *** cat: > > -- Built-in Function: cat (DIM, ARRAY1, ARRAY2, ..., ARRAYN) > Return the concatenation of N-d array objects, ARRAY1, ARRAY2, > ..., ARRAYN along dimension DIM. > > [snip] > In the 2.9.x CVS this is already fix. The correct fix is to make cat(n,X) work rather than change cell2mat. See the change 2005-10-25 David Bateman * data.cc (do_cat): called with 2 args, should return args(1) for compatibility. Perhaps the same change should be made to the 2.1.x tree... Regards David ------------------------------------------------------------- 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 -------------------------------------------------------------