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

Home » Public Forums » archive » Re: How to remove For..Endfor loops in these case?
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: How to remove For..Endfor loops in these case? [message #19401] Wed, 15 March 2000 00:00
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
"Sang-Heon Shim" <sangshim@princeton.edu> wrote in message
news:38CED482.169291C8@princeton.edu...
> pind=[0,1,2,3]
>
> for i=0,2 do a_new[*,pind,i] = replicate(1.0,ndata) # aa[pind*3+i]
>
> for i=ngauprm, nprm-1 do pder[*,i] = x[*]^float(i-ngauprm)

; make the exponent array
iarr = findgen(nprm-ngauprm)
; extend x
x = rebin(x,n_elements(x),nprm-ngauprm,/sample)
; do it!
pder = x^iarr

>
> Thanks.
>
> -- Dan
[Message index]
 
Read Message
Previous Topic: widgets and X clipboard
Next Topic: Re: Error on Orthorectification

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

Current Time: Fri Oct 10 09:01:08 PDT 2025

Total time taken to generate the page: 0.48084 seconds