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
Commits
553662a5
Commit
553662a5
authored
Jun 28, 2021
by
Lemmer, Jan
Browse files
Options
Downloads
Patches
Plain Diff
Example script addded
parent
435af87a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
MATLAB/Publish.m
+1
-0
1 addition, 0 deletions
MATLAB/Publish.m
MATLAB/example.m
+35
-0
35 additions, 0 deletions
MATLAB/example.m
with
36 additions
and
0 deletions
MATLAB/Publish.m
+
1
−
0
View file @
553662a5
...
@@ -61,6 +61,7 @@ disp('Start to copy research data ...');
...
@@ -61,6 +61,7 @@ disp('Start to copy research data ...');
disp
([
num2str
(
i
),
' of '
,
num2str
(
numel
(
figures
)),
' figures exported'
]);
disp
([
num2str
(
i
),
' of '
,
num2str
(
numel
(
figures
)),
' figures exported'
]);
end
end
%catch
%catch
%warning('Plot export was not sucessful')
%end
%end
disp
([
'Publishing of '
,
ID
,
' done'
]);
disp
([
'Publishing of '
,
ID
,
' done'
]);
...
...
This diff is collapsed.
Click to expand it.
MATLAB/example.m
0 → 100644
+
35
−
0
View file @
553662a5
% test skript
clear
;
clc
;
close
all
;
ProjectID
=
'JL01'
;
%% Data
% some random data
x
=
linspace
(
1
,
100
);
y
=
rand
(
1
,
100
)
+
2
;
save
(
'test_data.mat'
,
'x'
,
'y'
);
%% Plotting
fig1
=
figure
;
plot
(
x
,
y
,
'-k'
);
box
off
set
(
gca
,
'TickDir'
,
'out'
,
'YLim'
,
[
0
,
4
]);
% Tag the plot
[
figs
,
ID
]
=
TagPlot
(
fig1
,
ProjectID
);
%% publishing
% The functions needs the file location, the location of the data and the
% figure
path
.
script
=
mfilename
(
'fullpath'
);
% filename of the m.script
% file name of the data (should be extended to handle arrays)
path
.
rdata
=
'data_test.mat'
;
% don't forget the extension
% no options defined yet
options
=
''
;
Publish
(
path
,
ID
,
figs
,
options
)
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