%% Variable Number of Inputs and Outputs
% Define a function in a file named variableNumInputAndOutput.m that accepts a variable number of inputs and outputs.

type variableNumInputAndOutput

% Call the function with two inputs and three outputs.

[d,g,p] = variableNumInputAndOutput(6,'Nexus')

% Call the function again with no inputs or outputs.

variableNumInputAndOutput

% Copyright 2012 The MathWorks, Inc.