File Exchange

image thumbnail

process_varargin

version 1.3 (1.95 KB) by

utility to make setting and changing default values in a script easier

1 Download

Updated

View License

process_varargin is a simple script that allows the user to create a set of default values for attributes in a script then using varargin override those values.

Comments and Ratings (2)

Alan Robinson

Makes it easy to support optional, named arguments.

Could use with a better code example.

I prefer my procArgs method (also on file exchange) for setting the default values, but clearly it comes down to taste.

Alan Robinson

Updates

1.3

left out an error check statement

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video