Display_structure

Displays the fields in a structure.

You are now following this Submission

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 (2026). Display_structure (https://se.mathworks.com/matlabcentral/fileexchange/2031-display_structure), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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...