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

Home » Public Forums » archive » Concatenating arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Concatenating arrays [message #45374] Sun, 04 September 2005 06:05
RPF is currently offline  RPF
Messages: 2
Registered: September 2005
Junior Member
Hi all

I got a feeling this is a stupid question, but it's annoying the hell out of
me...
If I have a = [2 3] and i wish to repeat these two elements for say 1000
times so my final array is 2000 elements long is there a quick way? At the
moment im using a for loop with a = [a,a] and calculating the number of
loops required to get to the desired amount then trimming the edge off (but
i'll need to do this with quite large arrays). Also is there an easy way to
make an upper triangular matrix i.e. make all entries below the diagonal
zero ?

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: iTools screenshots
Next Topic: Any code to interface IDL to R ?

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

Current Time: Fri Oct 10 03:40:05 PDT 2025

Total time taken to generate the page: 0.39863 seconds