flattenStruct2Cell

Version 1.2.0.0 (1.32 KB) by Paul
Takes a Nested Structure, and returns a linear Cell array
540 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 (2026). 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 Linux
Categories
Find more on Data Type Conversion in Help Center and MATLAB Answers
Version Published Release Notes
1.2.0.0

Fixed bug which prevented layer one data.

1.1.0.0

Edited tags

1.0.0.0