%% Outputs Defined for a Function
% Determine how many outputs a function can return.
% The function subtract created in the previous example has two outputs in its declaration statement (dif and absdif).

fun = @subtract;
nargout(fun)

% Copyright 2012 The MathWorks, Inc.