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 件のコメント

Walter Roberson
Walter Roberson 2018 年 5 月 2 日
Are you possibly doing an "import", or possibly adding a jar to your javaclasspath ?
John Pryce
John Pryce 2018 年 5 月 4 日
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 2018 年 5 月 4 日
Walter Roberson
Walter Roberson 2018 年 5 月 4 日
"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."

サインインしてコメントする。

 採用された回答

lokender Rawat
lokender Rawat 2018 年 5 月 8 日

0 投票

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 件のコメント

John Pryce
John Pryce 2018 年 5 月 10 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by