easy-to-edit configuration file for a matlab function

matlab

Solution

I use YAML files all the time for config files with MATLAB applications. I've found them to be easily human-readable and editable, version-controllable, and very straightforward to use.

They have the advantage (over a MATLAB script) of also being widely readable by other languages (Perl, Python, Ruby, Java etc) if the config files also need to be used by other parts of a wider application.

There is a YAML file reader for MATLAB (a wrapper around the free Apache-licensed SnakeYaml Java library) that is publicly available. I've also written my own which I'd be happy to share (it's based on the package I linked to, with slightly less functionality, but quite a bit easier to understand the code and a bit more robust).

Problem

Like ini file, I basically want to have an easy-to-edit configuration file that can be used to read and distribute the info into matlab objects. I know people would recommend xml but the format is not easy for user to edit. Can anyone have any other way?

Original source