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

Home » Public Forums » archive » Re: 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: ARRAYS [message #2858 is a reply to message #2854] Thu, 08 September 1994 11:06 Go to previous message
velt is currently offline  velt
Messages: 19
Registered: June 1994
Junior Member
> From mallozzi@ssl.msfc.nasa.gov
> I must be missing something simple, but I sometimes find myself needing to
> concatinate arrays as follows:
>
> x = FINDGEN(10)
> y = FINDGEN(4,20)
> z = [x, y(1,*)]

The simple answer is to reform the array you want to concatenate, that is,
to remove the extra dimensions:

IDL> x = FINDGEN(10)
IDL> y = FINDGEN(4,20)
IDL> z = [x,reform(y(1,*))]
IDL> help, z
Z FLOAT = Array(30)

Good luck,
Robert Velthuizen,
Digital Medical Imaging Program of the
H. Lee Moffitt Cancer Center and Research Institute at the
University of South Florida.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Problem with PLOT limits in IDL v3.6
Next Topic: Re: XYOUTS overwrites

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

Current Time: Fri Oct 10 11:07:14 PDT 2025

Total time taken to generate the page: 1.03972 seconds