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

Home » Public Forums » archive » Re: output in an array
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
Re: output in an array [message #49696] Fri, 11 August 2006 12:23
Randolf Klein is currently offline  Randolf Klein
Messages: 6
Registered: August 2006
Junior Member
I am not sure what you are trying to achieve. May be something like this?

result=intarr(6,2)
For i=0, 5 do begin
a = i+1
b = i+4
result[i,*] = [a,b]

endfor

But this is all readily explained in the IDL manuals.

RK

On 08/11/2006 12:10 PM, adisn123@yahoo.com wrote:
> Hi,
>
> I'm pretty sure this should be very simple, but somehow it's not
> working.
>
> Ex.
>
> For i=0, 5 do begin
> a = i+1
> b = i+4
> result = [i,a,b]
>
> endfor
>
> IDL>print, result
>
> IDL> 5, 6, 9
>
> How can I make this puts its output result in an array in a variable
> "result"?
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: output in an array
Next Topic: POLY_2D inconsitent interpolation

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

Current Time: Sun Oct 12 07:31:30 PDT 2025

Total time taken to generate the page: 1.03922 seconds