diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index da8a62cdeb949cb1cdc40a3499f275da7e1a5e6d..000df7253c04c2b262e388cff79da5da2e308dc1 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -13,8 +13,8 @@ arguments DataPaths 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.Location {mustBeMember(options.Location ,{'local','server','CI-Test'})} = 'local' % storage path + options.Method {mustBeMember(options.Method ,{'individual','centralized'})} = 'individual' options.ParentFolder (1,:) {mustBeText} = 'export' options.CopyUserFCN (1,1) {mustBeNumericOrLogical} = true options.CSV (1,1) {mustBeNumericOrLogical} = false @@ -73,7 +73,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 86648e098ba9e3735bca16d0afe6768678fa0bfa..dfc42f28e2dad9c4a52d0363d2c2bcb924e73820 100644 --- a/example.m +++ b/example.m @@ -111,4 +111,4 @@ plot(x1,y1,'-r'); [fig2, ID] = PlotID.TagPlot(fig2,'ProjectID', ProjectID); -PlotID.Publish(path, ID, fig2, 'Location', 'local','Method','centraliced') +PlotID.Publish(path, ID, fig2, 'Location', 'local','Method','centralized')