%% Variable Number of Function Inputs
% Define a function in a file named acceptVariableNumInputs.m that accepts a variable number of inputs and displays the values of each input.

type acceptVariableNumInputs

% Call the function with several inputs.

acceptVariableNumInputs(ones(3),'some text',pi)

% Copyright 2012 The MathWorks, Inc.