View License

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

» Watch video

Highlights from

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



huang (view profile)


20 Nov 2012 (Updated )

decompilation a struct to a string which creats it

| Watch this File

File Information

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
19 Sep 2013 1.2

zip file

Contact us