%% Inputs Defined for a Function
% Determine how many inputs a function accepts.
% The function addme created in the previous example, has two inputs in its declaration statement (a and b). Define the name of the function as a character vector and use it as input for nargin.

fun = 'addme';
nargin(fun)

% Copyright 2012 The MathWorks, Inc.