Code covered by the BSD License  

Highlights from
struct2string

Be the first to rate this file! 4 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