flattern_struct(input, name)
Version 1.2.0.0 (667 Bytes) by
uathena
flattern a struct with unknown numbers of nested structs
for example:
input.field1 = struct()
input.field1.field2 = struct()
...
flattern the struct so it only has one layer, then you can convert it to cell/table etc.
Cite As
uathena (2024). flattern_struct(input, name) (https://www.mathworks.com/matlabcentral/fileexchange/64057-flattern_struct-input-name), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Structures in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.