Commit f9ecc164 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Move 'nanmean' under 'matlab/missing' and add the necessary logic

parent f250f029
......@@ -88,6 +88,18 @@ if ~exist('OCTAVE_VERSION') && matlab_ver_less_than('7.4')
addpath([dynareroot '/missing/bsxfun'])
end
% nanmean is in Octave Forge Statistics package and in MATLAB Statistics
% toolbox
if exist('OCTAVE_VERSION')
[desc,flag] = pkg('describe', 'statistics');
if ~isequal(flag{1,1}, 'Loaded')
addpath([dynareroot '/missing/nanmean'])
end
else
if ~license('test', 'statistics_toolbox')
addpath([dynareroot '/missing/nanmean'])
end
end
% Add path to MEX files
if exist('OCTAVE_VERSION')
......
Supports Markdown
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