I have a function that takes optional arguments as name/value pairs. function example(varargin) % Lots of set