Code covered by the BSD License  

Highlights from
Parse property/value pairs and structures

5.0

5.0 | 3 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.05 KB File ID: #22671

Parse property/value pairs and structures

by Douglas Schwarz

 

13 Jan 2009

Parses property/value pairs just like Handle Graphics functions.

| 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.

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 (3)
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.

08 Feb 2010 Joshua Arnott  
07 Apr 2011 Arthur

Just what I needed!

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

Contact us at files@mathworks.com