From help-request at octave dot org Thu Feb 17 12:16:55 2005 Subject: permute three dimensional Array From: "Hugo Neto" To: Date: Thu, 17 Feb 2005 09:03:18 -0600 This is a multi-part message in MIME format. ------=_NextPart_000_031C_01C51502.35795870 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear all, I'm facing a problem in permuting a 3 dimensional array. Imagine that "Example" is an array with (7x3600x2) length and my goal is = to permute this array to obtain an array (3600x2x7) length keeping the = same data. This action is possible in Matlab with the function "permute" but in = octave the same function doesn't perform the permutation like in Matlab. = The "permute" command in Octave just perform the permutation of 2 = dimensional array. The command performed is: permute(Example(:,:,2), [2 3 1]) % "Example" array has the length = mentioned before Somebody knows any function that performs the permutation on 3 = dimensional arrays? I'm working with Octave 2.1.57 version. It seems a little problem but in = fact i'm not getting solve this problem. Thanks in advance=20 Regards, Hugo Neto ------=_NextPart_000_031C_01C51502.35795870 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Dear all,
 
I'm facing a problem in = permuting a 3=20 dimensional array.
 
Imagine = that "Example" is an=20 array with (7x3600x2) length and my goal is to permute this array to = obtain an=20 array (3600x2x7) length keeping the same data.
 
This action is possible = in Matlab=20 with the function "permute" but in octave the same function doesn't = perform the=20 permutation like in Matlab. The "permute" command in Octave just=20 perform the permutation of 2 dimensional array.
 
The command performed=20 is:
 
permute(Example(:,:,2), = [2 3=20 1])  % "Example" array has the=20 length mentioned before
 
Somebody knows any = function that=20 performs the permutation on 3 dimensional arrays?
 
I'm working with Octave = 2.1.57=20 version. It seems a little problem but in fact i'm not getting solve = this=20 problem.
 
Thanks in advance =
 
Regards,
 
Hugo Neto
 
------=_NextPart_000_031C_01C51502.35795870-- ------------------------------------------------------------- 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 -------------------------------------------------------------