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

Adapt for change of ismember in MATLAB R2013a

parent e16e9c94
...@@ -13,7 +13,7 @@ function [i_var,nvar] = varlist_indices(sublist,list) ...@@ -13,7 +13,7 @@ function [i_var,nvar] = varlist_indices(sublist,list)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2010-2011 Dynare Team % Copyright (C) 2010-2013 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -32,7 +32,12 @@ function [i_var,nvar] = varlist_indices(sublist,list) ...@@ -32,7 +32,12 @@ function [i_var,nvar] = varlist_indices(sublist,list)
% In Octave, ismember() doesn't operate on character arrays % In Octave, ismember() doesn't operate on character arrays
if ~exist('OCTAVE_VERSION') if ~exist('OCTAVE_VERSION')
[check,i_var] = ismember(sublist,list,'rows'); if isempty(sublist)
check = [];
i_var = [];
else
[check,i_var] = ismember(sublist,list,'rows');
end
else else
check = []; check = [];
i_var = []; i_var = [];
......
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