Re: Magic with matrix [message #42379] |
Thu, 27 January 2005 08:36 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ahs writes:
> I guess this is just peanuts for you guys, but it would be very helpful
> for me.
>
> I have a 3dim matrix with the size ns x nb x nl, and I would like to
> change around the dimensions so that the new size is
> nb x ns x nl, without mixing up the data.
>
> I would like to manage this without creating a new matrix and copy the
> data over dimension by dimension. Is there a built in function I can
> use?
Here is an article for you:
http://www.dfanning.com/ip_tips/pixelband.html
You use the TRANSPOSE command.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|