Code covered by the BSD License  

Highlights from
Unfold structures

4.0

4.0 | 1 rating Rate this file 12 Downloads (last 30 days) File Size: 2.48 KB File ID: #31808

Unfold structures

by

 

15 Jun 2011 (Updated )

Unfold and show the content of the given structure.

| Watch this File

File Information
Description

UNFOLD_STRUCTURE Unfold and show the content of the given structure.

UNFOLD_STRUCTURE(STRUCT) shows recursively the content of the given structure STRUCT. Clean and generic implementation which can be easily extended, e.g. for structures containing cells.

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)
04 Oct 2011 nan

Works fine, thanks. Of course I have one suggestion!

Instead of requiring that the structure name be passed separately as a string, get the name by calling inputname(1). I found that useful little trick here on File Exchange, in the structstuct function.

Updates
04 Oct 2011

No need to explicitly specify the root name of the structure (thanks to nan's suggestion)

Contact us