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 #2855 is a reply to message #2854] Thu, 08 September 1994 12:10 Go to previous messageGo to previous message
landers is currently offline  landers
Messages: 45
Registered: May 1993
Member
In article <34n95u$ise@hammer.msfc.nasa.gov>, mallozzi@ssl.msfc.nasa.gov writes:
|> 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,*)]
|>
|> This won't work because IDL sees y(1,*) as a 2-d array, and x is 1-d.
|> Is there an easy way to concatenate two "vectors" without looping .....

Use REFORM, which will strip out those unity-dimensions:

z = [ x, REFORM( y(1,*) ) ]

--
;Dave
[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: Sat Oct 11 05:03:56 PDT 2025

Total time taken to generate the page: 0.08030 seconds