Adapt for change of ismember in MATLAB R2013a
parent
e16e9c9424
commit
feb0eb8a11
|
@ -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)
|
||||||
|
|
||||||
% 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 = [];
|
||||||
|
|
Loading…
Reference in New Issue