Often a very useful and complicated spreadsheet tool is available, and mkxlsfunc takes the overhead out of integrating the tool into the rest of your MATLAB code by generating an m-file function that automatically writes inputs to the spreadsheet and reads the outputs.
[h,nargin,nargout] = mkxlsfunc(functionName,xlsFile,inputRange,outputRange,sheet,overwrite)
The newly-created function, when provided with too few or no inputs, will use default values as determined by the contents of the xls input cells at the time of the function creation.
MKXLSFUNC is also a great function for Excel addicts who want to do most of their tool development in Excel. It's also great for the colleagues of Excel addicts.