Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
f9ecc164
Commit
f9ecc164
authored
Sep 27, 2011
by
Sébastien Villemot
Browse files
Move 'nanmean' under 'matlab/missing' and add the necessary logic
parent
f250f029
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_config.m
View file @
f9ecc164
...
...
@@ -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'
)
...
...
matlab/
utilities/general
/nanmean.m
→
matlab/
missing/nanmean
/nanmean.m
View file @
f9ecc164
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment