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

Home » Public Forums » archive » How to give values as a range in array?
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: How to give values as a range in array? [message #93379 is a reply to message #93378] Tue, 28 June 2016 07:45 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Tuesday, June 28, 2016 at 3:30:42 PM UTC+1, Meegle_Jade wrote:
> On Tuesday, June 28, 2016 at 7:32:54 PM UTC+5:30, Meegle_Jade wrote:
>> I need to fill an array with values say,0 to 100.Is there keyword to do that(without using any loops)?
>
> What if the values are from 100 to 700 or so? How can I do it?

from IDL 8.3 onwards:
findgen(600, start=100, increment=1)
Increment keyword is not needed... I just put it in in case you ask for it...
Otherwise
findgen(600)+100

cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug in legend() for horizontal orientations
Next Topic: How to overplot in log scale?

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

Current Time: Sat Oct 11 13:05:58 PDT 2025

Total time taken to generate the page: 0.48061 seconds