Display_structure

Displays the fields in a structure.
3K Downloads
Updated 11 Feb 2003

No License

This function extends the functionality of 'disp'. If a structure contains a structure, the fields in this structure are also displayed.

The indent before the fieldnames in a structure is increased (3rd argument). The initial indentation is given by the 2nd argument. Actually, this is just a slightly modified version of my own sort_structure version.

Cite As

Mark Jobse (2024). Display_structure (https://www.mathworks.com/matlabcentral/fileexchange/2031-display_structure), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Structures in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Can now display also cell arrays. Cells are displayed as a structure with each cell having a name like: 'cell1', 'cell2', etc...