
returning several waves from a function

vivishek
As an Igor newbie, I was trying to write a function that does some simple processing of an input wave, which ends up generating two processed waves of the same length and x-scaling. Since I use rtGlobals=3, and prefer to keep using it, there is the problem of somehow returning these 2 waves to the outside world. What is the advised way to do this in Igor? Package them into a matrix of waves? Or is there something else?
And since we are at it, how does one use optional arguments to functions?
Thanks.
You could also use a structure:
Execute this for details:
November 16, 2014 at 10:25 am - Permalink
November 16, 2014 at 12:12 pm - Permalink