v4 CutSample.m: removed eval() in eval(dir())

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@640 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-03-03 10:41:33 +00:00
parent 74b566d355
commit 35c1067f46
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ global M_ options_ estim_params_
npar = estim_params_.np+estim_params_.nvn+estim_params_.ncx+estim_params_.ncn+estim_params_.nvx;
DirectoryName = CheckPath('metropolis');
file = eval(['dir(''' DirectoryName '/' M_.fname '_mh_history.mat'');']);
files = eval(['dir(''' DirectoryName '/' M_.fname '_mh*.mat'');']);
file = dir([ DirectoryName '/' M_.fname '_mh_history.mat']);
files = dir([ DirectoryName '/' M_.fname '_mh*.mat' ]);
if ~length(files)
disp('MH:: FAILURE! there is no MH file to load here!')
return