[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: permute three dimensional Array
From: |
Hugo Neto |
Subject: |
Re: permute three dimensional Array |
Date: |
Fri, 18 Feb 2005 10:50:13 -0600 |
Dear Quentin
Thanks a lot for your help, you are right, "Example" is in fact a
2-dimensional array. I have used the Transpose option. I didn't think in
that chance.... but it is right, i reach the same goal.
Thank you,
Regards,
H.Neto
----- Original Message -----
From: "Quentin Spencer" <address@hidden>
To: "Hugo Neto" <address@hidden>
Cc: <address@hidden>
Sent: Thursday, February 17, 2005 6:35 PM
Subject: Re: permute three dimensional Array
Hugo Neto wrote:
The command performed is:
permute(Example(:,:,2), [2 3 1]) % "Example" array has the length
mentioned before
The problem is that Example(:,:,2) is a 2-dimensional array, so calling
permute with 3 dimensions returns an error. On the other hand,
permute(Example, [2 3 1])
permute(Example(:,:,2), [2 1])
are both valid usages of permute. Note that permute(Example(:,:,2), [2 1])
is equivalent to Example(:,:,2)', the transpose.
regards,
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
-------------------------------------------------------------