MATLAB: Calling some MATLAB function with suppressed outputs

functionsuppressed outputs

Hello all!
Let's say that we want to call some user-defined MATLAB function as:
[x, ~, y] = my_function(inputs);
where second output of the function is suppressed. Is there any way for function my_function to know which outputs are suppressed?
Best, Marko.