flattenStruct2Cell
Version 1.2.0.0 (1.32 KB) by
Paul
Takes a Nested Structure, and returns a linear Cell array
% Extention of struct2cell
% Takes a (possibly) nested structure and returns a linear cell array
% containing all the elements of the structure and another cell array
% containing the names of elements
% usage I is a structure
% Input
% cellstack is the array of non-structure elements
%
% Output
% cellnamestack is the name of the element including the path through the
% hirearchy
Cite As
Paul (2025). flattenStruct2Cell (https://uk.mathworks.com/matlabcentral/fileexchange/45849-flattenstruct2cell), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Data Type Conversion 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.
