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 comentarios

Walter Roberson
Walter Roberson el 2 de Mayo de 2018
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.
Walter Roberson
Walter Roberson el 4 de Mayo de 2018
"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."

Iniciar sesión para comentar.

 Respuesta aceptada

lokender Rawat
lokender Rawat el 8 de Mayo de 2018

0 votos

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 comentario

John Pryce
John Pryce el 10 de Mayo de 2018
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.

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Etiquetas

Preguntada:

el 2 de Mayo de 2018

Comentada:

el 10 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by