diff --git a/Workflows/Fault_Sweep/sm_pump_triplex_DOEdata_tocsv.m b/Workflows/Fault_Sweep/sm_pump_triplex_DOEdata_tocsv.m index 9bd036a..4c7dfc3 100644 --- a/Workflows/Fault_Sweep/sm_pump_triplex_DOEdata_tocsv.m +++ b/Workflows/Fault_Sweep/sm_pump_triplex_DOEdata_tocsv.m @@ -5,7 +5,9 @@ function sm_pump_triplex_DOEdata_tocsv(test_Data) % Copyright 2017-2022 The MathWorks, Inc. % Make data directory if it doesn't exist -if ~exist('Data', 'dir') + +cd(fileparts(which(mfilename'))); +if ~(isfolder([pwd filesep 'Data'])) mkdir('Data') end