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

Home » Public Forums » archive » Re: Return two arrays
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: Return two arrays [message #62773] Tue, 07 October 2008 19:42
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Oct 7, 4:31 pm, pgri...@gmail.com wrote:
> You can write a procedure instead
>
> pro f,input,output1,output2
> ...
>
> end
>
> Ciao,
> Paolo
>
> frankosuna wrote:
>> I've been having some problems returning two arrays in which each
>> contains an image of 1024x1024.  I have to return these two images
>> from a function but I haven't been able to get it to work properly.
>> Does anybody know how to do this in a smart way?
>
>> Thanks,
>
>> Frank
>
>

Or keywords:
function foo, secondarray=secondarray
...
return, firstarray
end

Or a structure:
function foo
...
return, {firstarray:firstarray,secondarray:secondarray}
end
Re: Return two arrays [message #62774 is a reply to message #62773] Tue, 07 October 2008 14:31 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
You can write a procedure instead

pro f,input,output1,output2
...

end

Ciao,
Paolo

frankosuna wrote:
> I've been having some problems returning two arrays in which each
> contains an image of 1024x1024. I have to return these two images
> from a function but I haven't been able to get it to work properly.
> Does anybody know how to do this in a smart way?
>
> Thanks,
>
> Frank
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Return two arrays
Next Topic: Re: Viewing a plot under bash?

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

Current Time: Wed Oct 08 15:34:22 PDT 2025

Total time taken to generate the page: 0.01435 seconds