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

Home » Public Forums » archive » how to do a loop in idl using multi-commmand?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
how to do a loop in idl using multi-commmand? [message #43538] Fri, 15 April 2005 10:08
lixiaoyao is currently offline  lixiaoyao
Messages: 49
Registered: April 2005
Member
I can run this in my idl,who know how to solve it?
nH2=findgen(10001)*10.0+0.1
ratio=make_array(10001)
for i=0,10000 do
x=2*nH2[i]
y=x*nH2[i]
ratio[i]=x/y
openw,1,'file'
printf,1,ratio
close,1
it seems to show you can not do multicommand in do loop.
thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Question about the TOTAL function.
Next Topic: Can a script tell if it is running in the VM?

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

Current Time: Wed Oct 08 15:49:18 PDT 2025

Total time taken to generate the page: 0.00366 seconds