Re: Return two arrays [message #62773] |
Tue, 07 October 2008 19:42 |
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  |
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
|
|
|