Code covered by the BSD License  

Highlights from
struct2string

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

struct2string

by

 

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

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.

Updates
19 Sep 2013

zip file

Contact us