5.0

5.0 | 1 rating Rate this file 127 downloads (last 30 days) File Size: 2.05 KB File ID: #22671

Parse property/value pairs and structures

by Douglas Schwarz

 

13 Jan 2009

Code covered by BSD License  

Parses property/value pairs just like Handle Graphics functions.

Download Now | Watch this File

File Information
Description

This function can be used to parse property/value pairs just like Handle Graphics functions which means that it can also handle structures with field names that are property names.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
parse_pv_pairs

MATLAB release MATLAB 7.6 (R2008a)
Other requirements Should work in any MATLAB version that supports structures, cell arrays and varargin.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
14 Jan 2009 John D'Errico

It took me a minute to see where this went beyond my own parse_pv_pairs, but it does offer an improvement over my code.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
property Cristina McIntire 13 Jan 2009 16:01:48
value Cristina McIntire 13 Jan 2009 16:01:48
pairs Cristina McIntire 13 Jan 2009 16:01:48
parse Cristina McIntire 13 Jan 2009 16:01:48
handle graphics functions Cristina McIntire 13 Jan 2009 16:01:48
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com