writeParamFile

版本 1.0.0 (3.4 KB) 作者: Hildo
Write a parameter file compatible with C/C++ and Python language. The file is populated with the values the mentioned variables of the base
9.0 次下载
更新时间 2020/4/19

writeParamFile Matlab function that writes a parameter file compatible with C/C++ and Python language. The file is populated with the values the mentioned variables of the base workspace. My personal use of this function is export configuration to DSP C/C++ softwares and PSIM simulations (.txt extesion).

writeParamFile fileName 'Description group one' var1 var2 var3 ... 'Description group two' ...
writeParamFile fileName 'Description group three' matrix1 ...
writeParamFile % At the end to close the opened file.

The open file command should be used just one, a sequential script e.g.:

writeParamFile fileName
writeParamFile var1 '\\ Description of this variable.'
writeParamFile 'Description group one' var1 var2 var3

The decriptions are add as a general header group. To add a comment by line usethe bellow examples. The first input (file name) may or may not be used.

writeParamFile '\\ Description.'
writeParamFile var1 '\\ Description of this variable.'
...

引用格式

Guillardi Jr., Hildo (2020). writeParamFile (https://www.github.com/hildogjr/writeParamFile), GitHub. Retrieved April 17, 2020.

MATLAB 版本兼容性
创建方式 R2017a
与 R2016a 及更高版本兼容
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库