diff --git a/MATLAB/setup.m b/MATLAB/setup.m index cd3b3ed..79b9db5 100644 --- a/MATLAB/setup.m +++ b/MATLAB/setup.m @@ -10,7 +10,13 @@ for i=1:length(paths) thisPath = paths{i}; - thisPathSplit = strread(thisPath,'%s','delimiter','/'); + + if isunix + thisPathSplit = strread(thisPath,'%s','delimiter','/'); + elseif ispc + thisPathSplit = strread(thisPath,'%s','delimiter','\\'); + end + addThisPath = 1; % Do not add any directories or files starting with a . or a ~