flattenStruct2Cell

Takes a Nested Structure, and returns a linear Cell array

You are now following this Submission

% 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 (2026). flattenStruct2Cell (https://ch.mathworks.com/matlabcentral/fileexchange/45849-flattenstruct2cell), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Fixed bug which prevented layer one data.

1.1.0.0

Edited tags

1.0.0.0