Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Merge requests
!52
implemented cell flattening and fixxed some type
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
implemented cell flattening and fixxed some type
dev/datapath-handle-nestedcellarrays
into
development
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
implemented cell flattening and fixxed some type
Hock, Martin
requested to merge
dev/datapath-handle-nestedcellarrays
into
development
Feb 17, 2022
Overview
0
Commits
1
Pipelines
1
Changes
3
Resolves
#99 (closed)
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
82e765c1
1 commit,
Feb 17, 2022
3 files
+
13
−
4
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
+PlotID/@dataPath/dataPath.m
+
8
−
0
View file @ 82e765c1
Edit in single-file editor
Open in Web IDE
Show full file
@@ -14,11 +14,19 @@ classdef dataPath < handle
@@ -14,11 +14,19 @@ classdef dataPath < handle
%DATAPATH Construct an instance of this class
%DATAPATH Construct an instance of this class
% start with argument validation
% start with argument validation
obj
.
ID
=
ID
;
obj
.
ID
=
ID
;
%catch non cell inputs in inputPaths
%catch non cell inputs in inputPaths
if
~
iscell
(
inputPaths
)
if
~
iscell
(
inputPaths
)
inputPaths
=
{
inputPaths
};
%Cell array
inputPaths
=
{
inputPaths
};
%Cell array
end
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
)]);
isStruct
=
false
([
1
,
numel
(
inputPaths
)]);
% strings will cause problems, therefore chars are used
% strings will cause problems, therefore chars are used
for
i
=
1
:
numel
(
inputPaths
)
for
i
=
1
:
numel
(
inputPaths
)
Loading