File Exchange

image thumbnail

Use Mac OS X XML Plists with MATLAB

version 1.0 (7.41 KB) by

Utilities to convert Mac OS X native storage format (XML Property Lists) for use in MATLAB.

4.66667
3 Ratings

3 Downloads

Updated

View License

These utilities enable the conversion of data written by programs on Mac OS X for use in MATLAB (and vice versa).

Anyone wanting to share data with programs written for Mac OS X can use these utilities to convert the native OS X storage format (XML Property List) to structures. XML Property Lists are the preferred textual representation of property list dictionaries.

These utilities convert from XML property list to a matlab structure and back, and include m-files for loading and saving XML property lists from matlab.

XMLPlistToStruct
structToXMLPlist

loadXMLPlist
saveXMLPlist

Info on OS X Property Lists: http://developer.apple.com/documentation/Cocoa/
Conceptual/PropertyLists/Concepts/XMLPListsConcept.html

John

Comments and Ratings (3)

Simon

Simon (view profile)

Yi Sui

Yi Sui (view profile)

Excellent.
To make it better, you can use genvarname() to make sure the field names are valid. e.g if the key name is sth like a-b, genvarname() will return a valid matlab variable name a_b.

Brian Emery

MATLAB Release
MATLAB 7.0.1 (R14SP1)

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

» Watch video