comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Matrix Transpose
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Matrix Transpose [message #61590] Tue, 22 July 2008 13:45
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
On Jul 22, 3:36 pm, "R.G. Stockwell" <notha...@noemail.com> wrote:
> "xiao" <littledd...@gmail.com> wrote in message
>
> news:39798cb6-9437-4373-b45d-1d0a3ab4dc85@s50g2000hsb.google groups.com...
>
>> Hi~ Everyone~
>> I got a question here about matrix,
>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>> out using IDL. I found the index of these numbers are different , just
>> like this :
>> C IDL
>> 1,1 ,1 1,2,2
>> 1, 2, 2 0, 2, 3
>> 1, 1,3 1, 0,3
>> 0,1,2 0, 0, 1
>> 0 ,0 ,3 1, 1, 0
>> 1,1 ,2 0 ,0 ,3
>> Do can have any ideas how can I put then in the right order in Idl?
>> Thank u~~ :)
>
> Perhaps test with a 2D array first, so you can see how the
> indices change in 2D, then 3D may be obvious.
>
> Cheers,
> bob

Goood Idea :)
Re: Matrix Transpose [message #61591 is a reply to message #61590] Tue, 22 July 2008 13:45 Go to previous message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
Sorry , other values are all zero , so I can hardly tell the index
there :)
Re: Matrix Transpose [message #61592 is a reply to message #61591] Tue, 22 July 2008 13:36 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"xiao" <littledddna@gmail.com> wrote in message
news:39798cb6-9437-4373-b45d-1d0a3ab4dc85@s50g2000hsb.google groups.com...
> Hi~ Everyone~
> I got a question here about matrix,
> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
> out using IDL. I found the index of these numbers are different , just
> like this :
> C IDL
> 1,1 ,1 1,2,2
> 1, 2, 2 0, 2, 3
> 1, 1,3 1, 0,3
> 0,1,2 0, 0, 1
> 0 ,0 ,3 1, 1, 0
> 1,1 ,2 0 ,0 ,3
> Do can have any ideas how can I put then in the right order in Idl?
> Thank u~~ :)

Perhaps test with a 2D array first, so you can see how the
indices change in 2D, then 3D may be obvious.

Cheers,
bob
Re: Matrix Transpose [message #61594 is a reply to message #61592] Tue, 22 July 2008 13:03 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 22, 2:52 pm, xiao <littledd...@gmail.com> wrote:
> On Jul 22, 2:41 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>
>
>> On Jul 22, 2:35 pm, xiao <littledd...@gmail.com> wrote:
>
>>> On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>>>> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>>>> > Hi~ Everyone~
>>>> > I got a question here about matrix,
>>>> > I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>>>> > out using IDL. I found the index of these numbers are different , just
>>>> > like this :
>>>> >                   C                                 IDL
>>>> >               1,1 ,1                            1,2,2
>>>> >               1, 2, 2                           0, 2, 3
>>>> >               1,  1,3                           1, 0,3
>>>> >               0,1,2                              0, 0, 1
>>>> >              0  ,0  ,3                           1, 1, 0
>>>> >              1,1 ,2                              0 ,0 ,3
>>>> > Do can have any ideas how can I put then in the right order in Idl?
>>>> >                                         Thank u~~ :)
>
>>>> look into TRANSPOSE() in the help system.
>
>>> I used that but seems still wrong  :(
>
>> To make the mapping easier, can you make the C matrix 1...24 (or
>> 0...23).  Then you might be able to figure out what's going on.
>
> I think the nidex for them are
> C: 18,23,20,7,4,19
> IDL: 23,12,16,2,17,4
>            XIAO

That's only 6?
Re: Matrix Transpose [message #61595 is a reply to message #61594] Tue, 22 July 2008 12:52 Go to previous message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
On Jul 22, 2:41 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jul 22, 2:35 pm, xiao <littledd...@gmail.com> wrote:
>
>
>
>> On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>>> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>>>> Hi~ Everyone~
>>>> I got a question here about matrix,
>>>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>>>> out using IDL. I found the index of these numbers are different , just
>>>> like this :
>>>> C IDL
>>>> 1,1 ,1 1,2,2
>>>> 1, 2, 2 0, 2, 3
>>>> 1, 1,3 1, 0,3
>>>> 0,1,2 0, 0, 1
>>>> 0 ,0 ,3 1, 1, 0
>>>> 1,1 ,2 0 ,0 ,3
>>>> Do can have any ideas how can I put then in the right order in Idl?
>>>> Thank u~~ :)
>
>>> look into TRANSPOSE() in the help system.
>
>> I used that but seems still wrong :(
>
> To make the mapping easier, can you make the C matrix 1...24 (or
> 0...23). Then you might be able to figure out what's going on.


I think the nidex for them are
C: 18,23,20,7,4,19
IDL: 23,12,16,2,17,4
XIAO
Re: Matrix Transpose [message #61596 is a reply to message #61595] Tue, 22 July 2008 12:41 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 22, 2:35 pm, xiao <littledd...@gmail.com> wrote:
> On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>
>
>> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>>> Hi~ Everyone~
>>> I got a question here about matrix,
>>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>>> out using IDL. I found the index of these numbers are different , just
>>> like this :
>>>                   C                                 IDL
>>>               1,1 ,1                            1,2,2
>>>               1, 2, 2                           0, 2, 3
>>>               1,  1,3                           1, 0,3
>>>               0,1,2                              0, 0, 1
>>>              0  ,0  ,3                           1, 1, 0
>>>              1,1 ,2                              0 ,0 ,3
>>> Do can have any ideas how can I put then in the right order in Idl?
>>>                                         Thank u~~ :)
>
>> look into TRANSPOSE() in the help system.
>
> I used that but seems still wrong  :(

To make the mapping easier, can you make the C matrix 1...24 (or
0...23). Then you might be able to figure out what's going on.
Re: Matrix Transpose [message #61597 is a reply to message #61596] Tue, 22 July 2008 12:35 Go to previous message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>> Hi~ Everyone~
>> I got a question here about matrix,
>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>> out using IDL. I found the index of these numbers are different , just
>> like this :
>> C IDL
>> 1,1 ,1 1,2,2
>> 1, 2, 2 0, 2, 3
>> 1, 1,3 1, 0,3
>> 0,1,2 0, 0, 1
>> 0 ,0 ,3 1, 1, 0
>> 1,1 ,2 0 ,0 ,3
>> Do can have any ideas how can I put then in the right order in Idl?
>> Thank u~~ :)
>
> look into TRANSPOSE() in the help system.

I used that but seems still wrong :(
Re: Matrix Transpose [message #61598 is a reply to message #61597] Tue, 22 July 2008 12:21 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
> Hi~ Everyone~
> I got a question here about matrix,
> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
> out using IDL. I found the index of these numbers are different , just
> like this :
>                   C                                 IDL
>               1,1 ,1                            1,2,2
>               1, 2, 2                           0, 2, 3
>               1,  1,3                           1, 0,3
>               0,1,2                              0, 0, 1
>              0  ,0  ,3                           1, 1, 0
>              1,1 ,2                              0 ,0 ,3
> Do can have any ideas how can I put then in the right order in Idl?
>                                         Thank u~~ :)

look into TRANSPOSE() in the help system.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How can I find Max and Mins of array by seeing which point's derivative is closest to 0
Next Topic: widget_problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:56:45 PDT 2025

Total time taken to generate the page: 0.00681 seconds