View License

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

» Watch video

Highlights from

4.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.95 KB File ID: #32288 Version: 1.3




21 Jul 2011 (Updated )

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

| Watch this File

File Information

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.

MATLAB release MATLAB 7.9 (R2009b)
Other requirements should work with any version, also tested with 2007
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
28 Mar 2012 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.

Comment only
28 Mar 2012 Alan Robinson

21 Jul 2011 1.3

left out an error check statement

Contact us