inputname

inputname(n) returns the original variable name of the n-th argument in current function.

See also

nargin | nargout