How do I get the second return value from a function without using temporary variables?

Viewed 22141

I have a function that returns two values, like so:

[a b] = myfunc(x)

Is there a way to get the second return value without using a temporary variable, and without altering the function?

What I'm looking for is something like this:

abs(secondreturnvalue(myfunc(x)))
2 Answers
Related