writevar
No License
This utility saves the contents of an array, structure, or array of structures in human-readable form to a text file in the form of a sequence of assignment statements. The intent is to create an "init" file that can be read or modified by users, for maintenance of large complex data structures.
There are three functions: writearray, writestruct, and writevar. Writearray works specifically on non-structure arrays or scalars, writestruct does a hierarchical descent of a structure, and writevar takes either structure or array input.
Cite As
Randy Poe (2024). writevar (https://www.mathworks.com/matlabcentral/fileexchange/989-writevar), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Structures >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |