Help me aviod a FOR loop!?!? [message #30455] |
Tue, 23 April 2002 09:10 |
Sdavis
Messages: 12 Registered: July 1998
|
Junior Member |
|
|
I don't know if this is possible. I have 4 coeffecients,
a,c,d,cd, that are each 3191-long arrays, and I would like to construct
3191, waveforms (of length 128) from these coefeccients.
Here's what I'm trying to do:
x = FINDGEN(128)
yfit = FLTARR(128,3191)
yfit = (a/cd)*( exp(-1.*c*x)-exp(-1.*d*x) )
In the end, I would like yfit to be an array of (128,3191) or (3191,128).
I can't figure out how to do this without using a FOR loop. Is there any
hope for doing this without a FOR loop?
THANKS!!!!!!
Sean
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< ><><><><>
Sean M. Davis
___ o __ __ sdavis@nis.lanl.gov
|\/ o\ o ,,,, ) `-'. \ NIS-1
|/\___/ (::::[||||||||||||||#==#[| Los Alamos National Laboratory
'' ).-.__/ 505-667-8784
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< ><><><><>
|
|
|