Skip to content
Snippets Groups Projects

implemented cell flattening and fixxed some type

Merged Hock, Martin requested to merge dev/datapath-handle-nestedcellarrays into development
3 files
+ 13
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 8
0
@@ -14,11 +14,19 @@ classdef dataPath < handle
%DATAPATH Construct an instance of this class
% start with argument validation
obj.ID = ID;
%catch non cell inputs in inputPaths
if ~iscell(inputPaths)
inputPaths = {inputPaths}; %Cell array
end
% handle nested cell arrays
while any(cellfun(@iscell,inputPaths))
inputPaths = [inputPaths{cellfun(@iscell,inputPaths)} inputPaths(~cellfun(@iscell,inputPaths))]
end
isStruct = false([1,numel(inputPaths)]);
% strings will cause problems, therefore chars are used
for i=1:numel(inputPaths)
Loading