View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
struct2string

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.11 KB File ID: #39118 Version: 1.2

struct2string

by

huang (view profile)

 

20 Nov 2012 (Updated )

decompilation a struct to a string which creats it

| Watch this File

File Information
Description

decompilation a struct to a string which creats it

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
22 Nov 2012 Jan Simon

Jan Simon (view profile)

If you have check the type of a field by "if ~isstruct()" you do not have to check by "elseif isstruct()" afterwards, but a simple "else" is enough.

It would be useful to specify the accepted sizes and types of the inputs: The function runs on scalar structs only. The fields can be strings, scalar doubles or empty. But what about cell strings, CHAR matrices, singles or integers? This should be explained in the documentation and caught by an exception handling.

Comment only
Updates
19 Sep 2013 1.2

zip file

Contact us