是否已经有用于 MATLAB 的 YAML 库/解析器? [英] Is there already a YAML library/parser for MATLAB?

查看:19
本文介绍了是否已经有用于 MATLAB 的 YAML 库/解析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 YAML 跨多种语言传递一些数据.(将其视为与语言无关的序列化".)其中一种语言是 MATLAB,但我似乎找不到该语言的 YAML 库.我在 Google 上检查了matlab yaml"和matlab yaml parse",似乎没有任何相关结果.在 MATLAB Central 上搜索yaml"也让我两手空空.

I want to use YAML to communicate some data across multiple languages. (Think of it as "language-independent serialization".) One of these languages is MATLAB, but I can't seem to find a YAML library for that language. I've checked for "matlab yaml" and "matlab yaml parse" on Google and there don't seem to be any relevant results. A search of "yaml" on MATLAB Central also left me empty-handed.

MATLAB 真的没有现成的 YAML 库吗?我可以写一个,但我想避免重复工作.(也许有什么要分享的?)

Is there really no existing YAML library for MATLAB? I'm fine with writing one, but I would like to avoid duplicating work. (Perhaps something to share?)

推荐答案

我扩展了 Jan 的代码以支持更多数据类型以及将 matlab 结构写入 yaml 文件.它不仅仅是一个 m 文件,因此我在 http://code.google.com 上找到了源代码/p/yamlmatlab/吉日

I extended Jan's code to support more data types as well as writing out of a matlab struct to yaml file. It is not just one m-file therefore I located the sources on http://code.google.com/p/yamlmatlab/ Jiri

这篇关于是否已经有用于 MATLAB 的 YAML 库/解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆