Is it possible to obtain only the second output from function file , without assigning a variable to the first output?

Answers (1)

In R2009b or later, you can use
[~, second_output] = function_call(...)
However, there is no way to get at this without an assignment. It is not possible to say
SecondOutput(function_call(...))

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 4 Nov 2017

Commented:

on 4 Nov 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!