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

Home » Public Forums » archive » Re: concatenate by columns
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: concatenate by columns [message #72120] Fri, 06 August 2010 15:15 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 6, 7:02 pm, Astro Fest <astrofes...@gmail.com> wrote:
> Is there a better way to concatenate by columns than converting to
> rows, concatenating, and converting back?  This is the way I'm doing
> it now, which seems really clunky.
>
> For example, say I have:
> IDL> a = indgen(2,10) & b = indgen(2,6)
> which are placeholders for arrays given by array_indices.  I want to
> get c as a (2,16) array... and currently I'm doing
> IDL> c = transpose([[transpose(a)],[transpose(b)]])

c=[[a],[b]]
[Message index]
 
Read Message
Read Message
Previous Topic: concatenate by columns
Next Topic: select first n elements of array without loop

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

Current Time: Wed Oct 08 15:19:30 PDT 2025

Total time taken to generate the page: 0.00409 seconds