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

Home » Public Forums » archive » arrays and polyfit
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
arrays and polyfit [message #6742] Fri, 02 August 1996 00:00
Mario Noyon is currently offline  Mario Noyon
Messages: 11
Registered: August 1996
Junior Member
I would like to use polyfit with an array like arr1(n,n,9) and arr2(9) instead
of using it with arr1(9) and arr2(9).
Well now I must employ a FOR statement what slows my application. My actual
code is :
;arr1 = FLTARR(256, 256, 9)
;arr2 = FLTARR(9)

FOR i=0,n-1 DO BEGIN
FOR j=0,n-1 DO BEGIN
result = POLYFIT(arr1(i,j,*),arr2(*),yfit,1)
table(i, j) = result(1) ;I only want the slope
END
END

Is there a way to avoid this ??
Thanks
--
NOYON Mario
[Message index]
 
Read Message
Previous Topic: image printing
Next Topic: Re: IDL with private colormap ?

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

Current Time: Fri Oct 10 01:45:21 PDT 2025

Total time taken to generate the page: 0.94082 seconds