Commit 0b50587f authored by Houtan Bastani's avatar Houtan Bastani
Browse files

matlab2tikz: linux: add directory for package installation; os x and windows...

matlab2tikz: linux: add directory for package installation; os x and windows add dynare/contrib/matlab2tikz if it exists; (only on os x) if it doesn't add package installation dir
parent 55edb3c1
...@@ -170,6 +170,23 @@ else ...@@ -170,6 +170,23 @@ else
addpath([dynareroot '../mex/matlab/']); addpath([dynareroot '../mex/matlab/']);
end end
% matlab2tikz
if strncmp(computer, 'GLNX', 4) || ~isempty(regexpi(computer, '.*linux.*', 'once'))
if exist('/usr/share/matlab2tikz/matlab2tikz.m') == 2
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']);
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']);
end
end
%% Set mex routine names %% Set mex routine names
mex_status = cell(1,3); mex_status = cell(1,3);
mex_status(1,1) = {'mjdgges'}; mex_status(1,1) = {'mjdgges'};
......
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