File Exchange

image thumbnail

Use Mac OS X XML Plists with MATLAB

version 1.0.0.0 (7.41 KB) by John Iversen
Utilities to convert Mac OS X native storage format (XML Property Lists) for use in MATLAB.

3 Downloads

Updated 22 Jul 2005

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

Yi Sui

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

Updates

1.0.0.0

Long url in description caused it to display incorrectly on your system.

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor