Explode a structure
Version 1.3.0.0 (1.52 KB) by
Andy Clifton
Explode a multi-level structure to find the lowest level field.
mystruc = expstruc(bigstructure);
Recursively expands the structure 'bigstructure' until data is found.
Returns a structure 'mystruc', containing two fields
1. 'name'; cell array of strings of the full name of the field
2. 'type' ; cell array of strings of the type of the field (double, logical, whatever)
Intended to be used with 'eval' for structure concatenation (code to follow).
Cite As
Andy Clifton (2026). Explode a structure (https://se.mathworks.com/matlabcentral/fileexchange/28946-explode-a-structure), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Tables >
Find more on Tables in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
