No BSD License  

Highlights from
writevar

4.0

4.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 10 KB File ID: #989

writevar

by Randy Poe

 

26 Oct 2001 (Updated 31 Oct 2001)

Read an array or structure and create a script that can recreate it.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
12 Oct 2007 Yogesh Parte

very good and handy code.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
structures Randy Poe 22 Oct 2008 06:38:54
cell arrays Randy Poe 22 Oct 2008 06:38:54
write Randy Poe 22 Oct 2008 06:38:54
var Randy Poe 22 Oct 2008 06:38:54
utilities Randy Poe 22 Oct 2008 06:38:54

Contact us at files@mathworks.com