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

Home » Public Forums » archive » simple question
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: Simple question [message #54201 is a reply to message #20164] Mon, 28 May 2007 13:58 Go to previous messageGo to previous message
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
Or, in the case where the values in the arrays are not necessarily in
increasing order:

IDL> array1=['aA', 'aC', 'aE']
IDL> array2=['bB', 'bD', 'bF']
IDL> array3=(transpose([[array1],[array2]]))[0:*]
IDL> print,array3
aA bB aC bD aE bF



On May 28, 11:54 am, Yaswant Pradhan <Yaswant.Prad...@gmail.com>
wrote:
> On May 28, 6:48 pm, Julio <j...@cpa.unicamp.br> wrote:
>
>> Hi!
>
>> Simple question... I have:
>
>> array1=['A', 'C', 'E']
>> array2=['B', 'D', 'F']
>
>> I need to merge these array to get:
>
>> array_3=['A, 'B', 'C', 'D', 'E', 'F']
>
>> How can I do that???
>
>> Thanks!
>> Julio
>
> array_3 = ([array1,array2])[sort([array1,array2])]
>
> ps: see help for UNIQ
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Using .sav files outside of IDL
Next Topic: IDL FFTW3 DLL source

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

Current Time: Wed Oct 08 21:49:28 PDT 2025

Total time taken to generate the page: 0.32512 seconds