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
For loop - Question [message #89989] Tue, 13 January 2015 06:02 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I create a for loop to store my Data in a 3D array [100,200,200]. Then I used my data array to calculate another matrix B as shown below:

for i=0, 99 do begin
ArrayData = C:\Users\..
endfor

B = total(ArrayData[0:4,*,*],1)/5.

A question that I have is once I used the ArrayData outside the for loop does it contains all the elements of the array or just those on the place [100,120,120]?

Thanks
[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:44:14 PDT 2025

Total time taken to generate the page: 0.00405 seconds