writevar

Version 1.0.0.0 (1.46 KB) by Randy Poe
Read an array or structure and create a script that can recreate it.
1.4K Downloads
Updated 31 Oct 2001

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
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0