image thumbnail

flattenStruct2Cell

version 1.2.0.0 (1.32 KB) by Paul
Takes a Nested Structure, and returns a linear Cell array

342 Downloads

Updated 12 Mar 2014

View License

% 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 (2021). flattenStruct2Cell (https://www.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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!