Commit d4891ba0 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

bug fix: matlab2tikz path

parent fcba382b
......@@ -176,14 +176,14 @@ if strncmp(computer, 'GLNX', 4) || ~isempty(regexpi(computer, '.*linux.*', 'once
addpath('/usr/share/matlab2tikz');
end
elseif strncmp(computer, 'MACI', 4) || ~isempty(regexpi(computer, '.*apple.*', 'once'))
if exist([dynareroot '/contrib/matlab2tikz/matlab2tikz.m']) == 2
addpath([dynareroot '/contrib/matlab2tikz']);
if exist([dynareroot '../contrib/matlab2tikz/matlab2tikz.m']) == 2
addpath([dynareroot '../contrib/matlab2tikz']);
elseif exist('/usr/local/share/matlab2tikz/matlab2tikz.m') == 2
addpath('/usr/local/share/matlab2tikz');
end
else
if exist([dynareroot '/contrib/matlab2tikz/matlab2tikz.m']) == 2
addpath([dynareroot '/contrib/matlab2tikz']);
if exist([dynareroot '../contrib/matlab2tikz/matlab2tikz.m']) == 2
addpath([dynareroot '../contrib/matlab2tikz']);
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment