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

Home » Public Forums » archive » Passing more than one variable out of a function.
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
Passing more than one variable out of a function. [message #65849] Tue, 24 March 2009 21:31
Benjamin.R.Evans is currently offline  Benjamin.R.Evans
Messages: 2
Registered: June 2008
Junior Member
The IDL intrinsic function WHERE can pass more than one variable out
to the calling program.

For example:

> array=[0,2,4,6,8,10]
> arr_subscripts = WHERE(array GT 5, count)

> print, arr_subscripts
3,4,5

> print, count
3

The question is how can I write a user defined function which can pass
more than one variable out to the calling program. Just like the WHERE
function?

I know that I could just use a procedure to do this. But I am just
curious.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: color plot in postscript
Next Topic: filling multi spectral image

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

Current Time: Wed Oct 08 17:31:03 PDT 2025

Total time taken to generate the page: 0.00537 seconds