This imports YAML files into MATLAB. I found this on the Google Code Archive. I've copied it here so that it can be easily be submoduled into other projects.
- Add the path to this cloned repository:
addpath('path/to/this/repo') - Reading:
YamlStruct = ReadYaml('filename.yaml') - Writing:
- Create struct:
x.name = 'Martin' - Create YAML:
WriteYaml('filename.yaml',x)
- Create struct: