Metrics icon indicating copy to clipboard operation
Metrics copied to clipboard

setup.m should adjust for pc vs mac/unix

Open lpuettmann opened this issue 9 years ago • 0 comments

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

lpuettmann avatar Jun 02 '15 14:06 lpuettmann