diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index 7fa9b2d23d64620efe98ba76924aacc45113b1cc..4c7b154c5b3a5aa96a45e981c822f04a8185fa50 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -12,7 +12,7 @@ arguments ID (1,:) {mustBeNonzeroLengthText} % ID must be provided figure (1,:) {mustBeFigure} % Checks if figure is a figure object options.Location {mustBeMember(options.Location ,['local','server','CI-Test'])} = 'local' % storage path - options.Method {mustBeMember(options.Method ,['individual','centraliced'])} = 'individual' + options.Method {mustBeMember(options.Method ,['individual','centralized'])} = 'individual' options.CopyUserFCN (1,1) {mustBeNumericOrLogical} = true options.CSV (1,1) {mustBeNumericOrLogical} = false end @@ -66,7 +66,7 @@ end %% Research data handeling switch options.Method - case 'centraliced' + case 'centralized' % check if data folder exists if ~isfolder(fullfile(storPath,'data')) mkdir(fullfile(storPath,'data')); diff --git a/example.m b/example.m index a757121d36199ecbd0c50363e4492efb9eaaa9fe..25707e6913a71fe0103cd78dc697cb1c01df19ab 100644 --- a/example.m +++ b/example.m @@ -77,7 +77,7 @@ path.script = mfilename('fullpath'); % filename of the m.script % file names of the datasets path.rdata = {dataset1,dataset2} ; % don't forget the extension -PlotID.Publish(path, ID, fig(1), 'Location', 'server' ,'Method','centraliced') +PlotID.Publish(path, ID, fig(1), 'Location', 'server' ,'Method','centralized') %% Example 2: multiple plots plot, all based on data-set2 (hdf5) % for individual data-sets, use an appropriate array @@ -98,7 +98,7 @@ path.rdata = {dataset2} ; % don't forget the extension % publsihing via for-loop for i=1: numel(fig) - PlotID.Publish(path, IDs{i}, fig(i), 'Location', 'local','Method','centraliced'); + PlotID.Publish(path, IDs{i}, fig(i), 'Location', 'local','Method','centralized'); end %% Second Plot with identical data to test centralized method @@ -111,4 +111,4 @@ plot(x1,y1,'-r'); [fig2, ID] = PlotID.TagPlot(fig2,'ProjectID', ProjectID); -PlotID.Publish(path, ID, fig2, 'Location', 'local','Method','centraliced') \ No newline at end of file +PlotID.Publish(path, ID, fig2, 'Location', 'local','Method','centralized') \ No newline at end of file