Reputation: 17428
Apart from csv file, which other options do I have to read and write human readable data files in matlab? The data consists of unique parameter value pairs (not necessarily hierarchical - see below).
My situation is this. I am currently using xml2struct to read a XML file, which is then transformed into a struct of parameters. Unfortunately, I cannot use this approach anymore as I intend to use Matlab coder, which does not support cell arrays or strrp etc.
Any feedback would be very much appreciated - especially something that is robust in terms of Matlab coder.
Upvotes: 1
Views: 269
Reputation: 20915
You could also write a Json file, it is structured and kind of human-readable. I have no idea on its compatibility with Matlab coder.
Upvotes: 1