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

Home » Public Forums » archive » Re: 2 dimensional array from 3 x 1dimensional arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 2 dimensional array from 3 x 1dimensional arrays [message #45037 is a reply to message #45036] Thu, 04 August 2005 07:22 Go to previous message
peter.albert@gmx.de is currently offline  peter.albert@gmx.de
Messages: 108
Registered: July 2005
Senior Member
Hi Martin,

although the way how exactly you would like to redistribute the
vectors' contents is not fully clear to me, I'll just assume the simple
case that e.g. Arr2[3] will become A[2, 3] etc., i.e. the fourth
element of the third vector will become the fourth element in the third
line of the new array. If that's not what you want, please excuse. It
is surely not what you write above, but I just don't see the system
behind that ...

Well, anyway, in that simple case, something like

IDL> a = [[v1], [v2], [v3]]

does the trick in case that each vector vi is a row vector of exactly
one dimension, i.e., "help v1" should give "... INT = ARRAY[n]"

In case the vectors are column vectors of the type [1, n], the above
line becomes

IDL> a = [v1, v2, v3]

Best regards,

Peter
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hours since 1-1-1
Next Topic: Maximum value array resampling

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

Current Time: Fri Oct 10 14:00:00 PDT 2025

Total time taken to generate the page: 0.48053 seconds