Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.m should adjust for pc vs mac/unix #12

Open
lpuettmann opened this issue Jun 2, 2015 · 0 comments
Open

setup.m should adjust for pc vs mac/unix #12

lpuettmann opened this issue Jun 2, 2015 · 0 comments

Comments

@lpuettmann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant