From help-octave-request at bevo dot che dot wisc dot edu Wed Nov 14 06:38:09 2001 Subject: Re: 3D array From: Laurent Jacques To: help-octave at bevo dot che dot wisc dot edu Date: Wed, 14 Nov 2001 13:36:07 +0100 On Wednesday 14 November 2001 12:56, Laurent Jacques wrote: > On Wednesday 14 November 2001 02:11, adler at freenet dot carleton dot ca wrote: > > I haven't used N dim arrays in Matlab. For those who have: > > Is that Matlab implementation well thought out? > > Or are there inconsistencies and ambiguities (as is > > fairly common in some of the worse thought out parts of > > Matlab syntax)? > > Well. It seems that in Matlab, the dimensions greater than 2 are extra > dimensions in the sense that they don't participate to standard algebric > manipulation. > > Here are some very basic examples: > === > > >> a = eye(3,3); %% eye(3,3,3) not defined! > >> a(:,:,1) = eye(3,3); Of course, this is an error. It must be a(:,:,2). Cut and past problem ;-) Sorry ------------------------------------------------------------- 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 -------------------------------------------------------------