File Exchange

image thumbnail

Unfold structures

version 1.1 (2.48 KB) by

Unfold and show the content of the given structure.

2 Downloads

Updated

View License

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.

Comments and Ratings (1)

nan

nan (view profile)

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

1.1

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

MATLAB Release
MATLAB 7.12 (R2011a)

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

» Watch video

unfold_structure/