File Exchange

image thumbnail

PRINTSTRUCT | Recursively print structures to the command window or a cell char array

version 1.0.0.0 (6.48 KB) by Bob Spunt
Recursively print/display hierarchical outline of structure contents

12 Downloads

Updated 22 Feb 2018

GitHub view license on GitHub

Recursively print hierarchical outline of structure contents. This is a minor adaptation of the File Exchange contribution "Structure outline" written by B. Roossien. Changes include:
- automatic determination of input structure variable name, which is used to title each struct
- included output argument that, when defined, returns the printed struct as char cell array and suppresses output to command window
- input specification and defining default values is easier and more flexible
- (possibly) better handling of structure arrays

Cite As

Bob Spunt (2020). PRINTSTRUCT | Recursively print structures to the command window or a cell char array (https://github.com/spunt/printstruct), GitHub. Retrieved .

Comments and Ratings (10)

Arjun Sarin

zmi zmi

Matt Meissner

nicolas Borderies

Olav Queseth

Does exactly what the name says. Output is very well formatted. Excellent tool for looking through big data structures.

Miguel Camelo

Excellent.

Maximilian Appel

John Anderson

Great job, though found I had to dig around a little on file exchange to find this post when searching for 'structure display'. An improvement on B. Roossien's original contribution.

Stephane

What I needed !

Song

Perfect!

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Structure display

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!