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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Commits
b9aa3d93
Commit
b9aa3d93
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Plain Diff
Merge branch '80-use-strcat-instead-of' into 'development'
Add
#82
, fix
#81
See merge request
!27
parents
087ad7e2
ef30fe65
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!30
Fix CI
,
!27
Add #82, fix #81
Pipeline
#585944
passed
3 years ago
Stage: Run
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
+PlotID/Publish.m
+19
-8
19 additions, 8 deletions
+PlotID/Publish.m
example.m
+1
-1
1 addition, 1 deletion
example.m
with
20 additions
and
9 deletions
+PlotID/Publish.m
+
19
−
8
View file @
b9aa3d93
...
...
@@ -33,6 +33,18 @@ arguments
end
%% argument validation
%catch string and non cell inputs in DataPaths
if
~
iscell
(
DataPaths
)
DataPaths
=
{
DataPaths
};
%Cell array
end
for
i
=
1
:
numel
(
DataPaths
)
if
isstring
(
DataPaths
{
i
});
% strings will cause problems
DataPaths
{
i
}
=
char
(
DataPaths
{
i
});
end
end
%catch multiple figures in fig
if
numel
(
figure
)
>
1
figure
=
figure
(
1
);
...
...
@@ -248,14 +260,13 @@ end
function
mustBeDataPath
(
DataPaths
)
%checks if input is a valid DataPath object
if
isstring
(
DataPaths
)
tf
=
zeros
(
1
,
numel
(
DataPaths
));
for
i
=
1
:
numel
(
DataPaths
)
tf
(
i
)
=
~
isfile
(
DataPaths
{
i
});
end
else
tf
=
~
isfile
(
DataPaths
);
if
~
iscell
(
DataPaths
)
DataPaths
=
{
DataPaths
};
end
tf
=
zeros
(
1
,
numel
(
DataPaths
));
for
i
=
1
:
numel
(
DataPaths
)
tf
(
i
)
=
~
isfile
(
DataPaths
{
i
});
end
if
any
(
tf
)
...
...
This diff is collapsed.
Click to expand it.
example.m
+
1
−
1
View file @
b9aa3d93
...
...
@@ -76,8 +76,8 @@ scriptPath = [mfilename('fullpath'),'.m'];
%(defined above:) dataset1 = 'test_data.mat'; dataset2 = 'testdata2.h5'
locations
=
{
dataset1
,
dataset2
}
;
% don't forget the extension
locations
=
{
string
(
dataset1
),
dataset2
}
%locations = {'test_data.mat', 'falsch'};
%call publishing
PlotID
.
Publish
(
locations
,
scriptPath
,
fig
(
1
),
'Location'
,
'local'
,
'Method'
,
'individual'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment