This question concerns examples in the R2007a documentation:
Help Navigator -> Contents -> MATLAB Builder for .NET -> Programming with COM Components -> Passing Arguments -> Creating and Using a varargin Array in Visual Basic Programs Creating and Using varargout in Visual Basic Programs
In MATLAB, "varargin" inputs to functions are optional, and may be present or omitted from the function call. However, from VBA, function signatures are more strict – if "varargin" is present among the MATLAB function inputs, the VBA call must include "varargin", even if it is desired to leave it empty. How can an empty "varargin" be passed in from VBA code?
Best Answer