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

Home » Public Forums » archive » RETURN
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: RETURN [message #86818 is a reply to message #86817] Thu, 05 December 2013 01:55 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, December 4, 2013 9:33:37 PM UTC-5, wlandsman wrote:
> Another possibility is to return a 2 element vector
>
> return,[a+b, 2*a]

True, but A and B are listed as vectors already, so that may lead to some unintended consequences.

To Maria, IDL only lets you return one variable with the RETURN statement. To pass more data out of your function, you either need to concatenate arrays like Wayne showed, or use named variables like Matthew Argall showed. Neither is very intuitive for a non-programmer.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plotting missing values
Next Topic: PS fonts

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

Current Time: Fri Oct 10 14:18:32 PDT 2025

Total time taken to generate the page: 2.16677 seconds