octave expects the first argument of strmatch to be a string

time-shift
Houtan Bastani 2016-09-27 16:49:16 +02:00
parent 245359a7df
commit de13e98791
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
function [vdec, corr, autocorr, z, zz] = th_moments(dr,var_list)
% [vdec, corr, autocorr, z, zz] = th_moments(dr,var_list)
% Copyright (C) 2012-2015 Dynare Team
% Copyright (C) 2012-2016 Dynare Team
%
% This file is part of Dynare.
%
@ -27,7 +27,7 @@ if nvar == 0
else
ivar=zeros(nvar,1);
for i=1:nvar
i_tmp = strmatch(var_list(:,i),M_.endo_names,'exact');
i_tmp = strmatch(var_list{:,i},M_.endo_names,'exact');
if isempty(i_tmp)
error(['One of the variables specified does not exist']) ;
else