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 #89997 is a reply to message #89993] Wed, 14 January 2015 00:55 Go to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Tuesday, 13 January 2015 16:16:33 UTC+1, g.na...@gmail.com wrote:
> I forgot to write something in my for loop:
>
> for i=0, 99 do begin
> ArrayData = C:\Users\..
>
> Data = ArrayData[i,*,*]
> endfor

Hm. This is not very coherent. You don't show what you do with the "Data" variable. You are overwriting it on every iteration. And what does "C:\Users\..." contain? Single images of size (200,200)? In that case, your loop should be something like what I wrote in my previous post:

ArrayData = fltarr(100,200,200)
for i=0,99 do ArrayData[i,*,*] = my_get_data_from_file_function(file[i])

where "my_getdata_from_file_function" is a function that can read your files (you haven't told us what kind of files you have).

Why don't you post your actual loop and tell us what you want to do? It is hard to tell what you did and what you are trying to do. See

http://xyproblem.info

--
Yngvar
[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 13:36:09 PDT 2025

Total time taken to generate the page: 0.00370 seconds