Skip to content
Snippets Groups Projects

Dev/datapath handle nestedcellarrays

Merged Hock, Martin requested to merge dev/datapath-handle-nestedcellarrays into development
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -23,8 +23,10 @@ classdef dataPath < handle
% handle nested cell arrays
while any(cellfun(@iscell,inputPaths))
inputPaths = [inputPaths{cellfun(@iscell,inputPaths)} inputPaths(~cellfun(@iscell,inputPaths))]
while any(cellfun(@iscell,inputPaths)) % while any of the cells contain cells
% concatenate the content of the cells containing cells
% with the ones that don't contain cells
inputPaths = [inputPaths{cellfun(@iscell,inputPaths)} inputPaths(~cellfun(@iscell,inputPaths))];
end
isStruct = false([1,numel(inputPaths)]);
Loading