Point me to documentation of ReadYaml()

I am reading YAML files, and have been given some code that does this by calling
data = yaml.ReadYaml('somefile');
It works, but I have no documentation and probably could use it better. MATLAB's help does not know of it. Can someone tell me who wrote it and point me to some instructions?

4 Comments

Are you possibly doing an "import", or possibly adding a jar to your javaclasspath ?
Ah yes. I don't understand the infrastructure well. My colleague created a folder MatlabPackages with this inside:
MatlabPackages
+yaml
external
snakeyaml-1.9.jar
...
ReadYaml.m
ReadYamlRaw.m
...lots more m-files & some subdirectories
Neither of us understands the Java side of Matlab well. I need to find out where he got +yaml from.
ReadYaml() calls ReadYamlRaw(). Both have optional arguments and both are undocumented.
I have a big beef that the way ReadYaml() reads lists into a Matlab structure is so far from YAML's definition, and so inconvenient, it counts as a bug. The C++ version of ReadYaml() does not have this bug.
"Main authors
  • Jiri Cigler, Dept. of Control Engineering, CTU Prague http://support.dce.felk.cvut.cz/pub/ciglejir/
  • Jan Siroky, Energocentrum PLUS, s.r.o.
  • Pavel Tomasko, student at Faculty of Electrical Engineering, CTU Prague and Institute of Chemical Technology, Prague."

Sign in to comment.

 Accepted Answer

Currently MATLAB does not support YAML parsing but third party tools like 'yamlmatlab' can be used for the purpose as needed. It is mentioned in the official documentation as well, please refer the link to find the same at the end of the page: link_for_doc
However, the relevant documentation could also be inquired from the creators of the application. Refer the below links:

1 Comment

Iokander, thanks. It looks as if the senior author is now at Feramat Cybernetics, Prague so I have written to the company asking if anyone at Czech Technical University has taken over maintenance.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!