Display_structure

Displays the fields in a structure.

Vous suivez désormais cette soumission

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.

Citation pour cette source

Mark Jobse (2026). Display_structure (https://fr.mathworks.com/matlabcentral/fileexchange/2031-display_structure), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version 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...