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

Home » Public Forums » archive » FOR statement
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
FOR statement [message #24757] Thu, 12 April 2001 08:42
Eli Beckerman is currently offline  Eli Beckerman
Messages: 3
Registered: April 2001
Junior Member
Hey,

I just tried running a FOR loop in the hopes
of incrementing the variable "i" by steps of 0.25 as follows:

radius=fltarr(1000)
FOR i=0.0, 100.0, 0.25 DO BEGIN

radius(i)=i

ENDFOR


And what I end up with is an array that starts
with the value 0.75 and is incremented by steps of 1.

I'm following the convention of the FOR statement as
presented in IDL's online help. What am I doing wrong?!


Cheers,
Eli
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: R: How to call fortran subroution?
Next Topic: search for linux programs

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

Current Time: Wed Oct 08 15:17:24 PDT 2025

Total time taken to generate the page: 0.00514 seconds