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

Home » Public Forums » archive » Re: Returning ARRAYs from functions?
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: Returning ARRAYs from functions? [message #29785 is a reply to message #29783] Wed, 13 March 2002 14:31 Go to previous messageGo to previous message
Robert Stockwell is currently offline  Robert Stockwell
Messages: 74
Registered: October 2001
Member
You can return arrays from an IDL function.
-bob


function passarray,length

a = findgen(length > 1)
return,a

end



R.A wrote:

> I have been rewriting some software in IDL5.4 passed onto me
> by a former colleague.
> Essentially the function is required to correct an array of values
> by applying a polynomial and then return the corrected array.
>
> I have noted this doesnt work as I have stated although I
> had the idea IDL could pass any dimension array to a
> function and return the array from the function.
>
> What seems to have been done is to create a structure from
> the array passed and return the structure.
>
> Is what I have said correct? ... that you need to pass data arrays
> from IDL functions as data structures as arrays cannot be
> passed??
>
> Comments please.
>
>
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: fun typos in IDL
Next Topic: Re: AVI reader/writer dll available

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

Current Time: Sat Oct 11 19:08:41 PDT 2025

Total time taken to generate the page: 1.33083 seconds