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

Home » Public Forums » archive » For loop - Question
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: For loop - Question [message #89992 is a reply to message #89991] Tue, 13 January 2015 07:14 Go to previous messageGo to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
> assuming that all the files contain data of the same size (200 x 200).

Right.

>> B = total(ArrayData[0:4,*,*],1)/5.
>
> This is the average of the first 5 images. Is this what you want?

Yes, this is what I want.

> In the pseudocode you posted, it looks like you overwrite the array on each iteration in the loop. This is likely not what you want.

Yes, this is what I have noticed. I don't want to overwrite it I want to store everything and use it afterwards.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL inverse matrix problem
Next Topic: Wavelet transform in IDL?

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

Current Time: Wed Oct 08 11:34:26 PDT 2025

Total time taken to generate the page: 0.00461 seconds