|
|
|
|
Re: Simple question [message #54200 is a reply to message #20164] |
Mon, 28 May 2007 14:32   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On May 28, 11:48 am, 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
IDL> result = reform(transpose([[array1], [array2]]), 6)
IDL> print, result
A B C D E F
Mike
--
www.michaelgalloy.com
|
|
|
Re: Simple question [message #54201 is a reply to message #20164] |
Mon, 28 May 2007 13:58   |
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
|
|
|
Re: Simple question [message #54203 is a reply to message #20164] |
Mon, 28 May 2007 10:54   |
yp
Messages: 42 Registered: February 2005
|
Member |
|
|
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
|
|
|
Re: Simple Question [message #54274 is a reply to message #20164] |
Tue, 29 May 2007 19:53  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On May 29, 5:09 pm, mark...@gmail.com wrote:
> On May 29, 1:02 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
> wrote:
>
>> IDLAnalystnow is include in IDL 6.4
>
> Is this true? I don't see anything about Analyst being included in
> IDL 6.4 on the RSI web site...
Well, it's there. You just might not have a license to use it.
Mike
--
www.michaelgalloy.com
|
|
|
Re: Simple Question [message #54276 is a reply to message #20164] |
Tue, 29 May 2007 16:09  |
markb77
Messages: 217 Registered: July 2006
|
Senior Member |
|
|
On May 29, 1:02 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> IDLAnalystnow is include in IDL 6.4
Is this true? I don't see anything about Analyst being included in
IDL 6.4 on the RSI web site...
|
|
|
|