Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Write 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).

License

Notifications You must be signed in to change notification settings

hildogjr/writeParamFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Description

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.

Cite as

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

Usage

My personal use of this function is export configuration to DSP C/C++ softwares and PSIM simulations (.txt extesion).

  • Opening at the use
writeParamFile fileName 'Description group one' var1 var2 var3 ... 'Description group two' ...
writeParamFile % At the end to close the opened file
  • Opening jsut one time
writeParamFile fileName
writeParamFile 'Description group three' matrix1 ...
writeParamFile 'Description group four' matrix2 ...
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.'
...

About

Write 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).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /