Code covered by the BSD License  

Highlights from
process_varargin

4.0

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

process_varargin

by

 

21 Jul 2011 (Updated )

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

| Watch this File

File Information
Description

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.

28 Mar 2012 Alan Robinson  
Updates
21 Jul 2011

left out an error check statement

Contact us