Code covered by the BSD License  

Highlights from
STRUCT2STR

5.0

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 2.98 KB File ID: #15017
image thumbnail

STRUCT2STR

by Marco Cococcioni

 

16 May 2007 (Updated 16 May 2007)

Converts a struct intoa char string and, if needed, display the string. The function allows exportin

| Watch this File

File Information
Description

STRUCT2STR - Converts a struct into a char string and optionally display its pairs of field names and field values in a list box.
The rows of the list box visualizing the fields can be individually selected, and the corresponding fields can be copied to the clipboard.
In this way, this function can be used to paste significant fields of a struct to a plain text file, for documentation purposes.
By displaying the obtained char string we get a similar output as the one generated by the Matlab built-in function DISP, when called on
the original struct.

Acknowledgements
This submission has inspired the following:
struct2str recursive
MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
13 Jul 2007 Ben Travaglione

Appears to do exactly what it says - very handy!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
strings Marco Cococcioni 22 Oct 2008 09:12:57
struct Marco Cococcioni 22 Oct 2008 09:12:57
char strings Marco Cococcioni 22 Oct 2008 09:12:57
conversion Marco Cococcioni 22 Oct 2008 09:12:57
struct display Marco Cococcioni 22 Oct 2008 09:12:57

Contact us at files@mathworks.com