%% Outputs for Current Function
% In a file named subtract.m, create a function that calculates a second return value, absdif, only if requested.

type subtract.m

% At the command prompt, call the subtract function with one return value.

diff = subtract(42,13)

% Call the subtract function again with two return values.

[dif,absdif] = subtract(2,5)

% Copyright 2012 The MathWorks, Inc.