From 4357ed03b5a85443082e7a3488f2b840ee7048bb Mon Sep 17 00:00:00 2001
From: Jan Lemmer <jan.lemmer@fst.tu-darmstadt.de>
Date: Wed, 22 Sep 2021 13:29:20 +0200
Subject: [PATCH] Correct a Bug in ismember and a typo thanks to Jan Stifter

---
 +PlotID/Publish.m | 6 +++---
 example.m         | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m
index da8a62c..000df72 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 86648e0..dfc42f2 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')
-- 
GitLab