Metrics
Metrics copied to clipboard
setup.m should adjust for pc vs mac/unix
Hi Ben,
your setup.m
script in Metrics/MATLAB/setup.m doesn't work well on Windows computers because of the different path delimiters / vs . I realized this when .git paths showed up on my Matlab path.
It's works for both if you replace
thisPathSplit = strread(thisPath,'%s','delimiter','/');
with
if ismac | isunix
thisPathSplit = strread(thisPath,'%s','delimiter','/');
elseif ispc
thisPathSplit = strread(thisPath,'%s','delimiter','\\');
end
best, Lukas