0001
0002 clear; clc; close all;
0003 addpath('fcn_core','fcn_help');
0004 addpath('CI_files');
0005
0006 try
0007 delete testdata_2.h5;
0008 end
0009
0010 ProjectID = 'JL01';
0011
0012
0013
0014 x = linspace(0,7);
0015 y = rand(1,100)+2;
0016 dataset1 = 'test_data.mat';
0017 save('test_data.mat','x','y');
0018
0019
0020
0021 x1 = linspace(0,2*pi);
0022 y1 = sin(x1)+2;
0023
0024
0025 fpath = "./testdata_2.h5";
0026 dataset2 = 'testdata_2.h5';
0027
0028
0029 h5create(fpath, "/x1", size(x1), "Datatype", class(x1))
0030 h5create(fpath, "/y1", size(y1), "Datatype", class(y1))
0031 h5write(fpath, "/x1", x1)
0032 h5write(fpath, "/y1", y1)
0033
0034
0035
0036 fig(1) =figure;
0037 plot(x,y,'-k');
0038 box off
0039 set(gca, 'TickDir', 'out', 'YLim', [0,4]);
0040
0041 hold on
0042
0043 plot(x1,y1,'-r');
0044 set(gca, 'TickDir', 'out', 'YLim', [0,4]);
0045
0046 [figs, ID] = TagPlot(fig, ProjectID);
0047
0048
0049 a=1;
0050 a = example_fcn(a);
0051
0052
0053
0054
0055
0056 path.script = mfilename('fullpath');
0057
0058
0059 path.rdata = {dataset1,dataset2} ;
0060
0061 Publish(path, ID, figs, 'Location', 'local','Method','individual')
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072