Skip to content
Snippets Groups Projects
Commit 553662a5 authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Example script addded

parent 435af87a
Branches
Tags
No related merge requests found
...@@ -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']);
......
% 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment