From bug-request at octave dot org Tue Aug 10 00:09:04 2004 Subject: Re: cat(3,eye(2),eye(2)) doesn't work on Octave CVS (8/8/2004) From: David Bateman To: bug at octave dot org Date: Tue, 10 Aug 2004 07:07:53 +0200 The whole concatenation code was rewritten to extract the concatenation as a binary operation between adjacent args. This allows arbitrary things to be concatenated, including cell arrays and structures both with Fcat and with "[ ]". Now the range insert error is indeed and indication of a bug, as it means that an array of the wrong size is being passed to be concatenated. However, I don't see this problem, and I'm using the CVS version as well. octave:1> cat(3,eye(2),eye(2)) ans = ans(:,:,1) = 1 0 0 1 ans(:,:,2) = 1 0 0 1 I suspect the reason is that your copy of the source is out of sync with the CVS. The missing ov-struct.cc is a reasonable indication of this. Its that fill that would allow you to do concatentaion of structure arrays, like for example cat(1,struct("x",1,"y",2),struct("x",3,"y",4)). You might like to recheckout the code and try again... D. -- 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 -------------------------------------------------------------