Fix problem with load_mh_file option under Octave/MinGW

time-shift
Sébastien Villemot 2011-09-14 17:40:41 +02:00
parent 2aa7cf373e
commit d9ede95ffa
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ elseif options_.load_mh_file && ~options_.mh_recover
%% Here we consider previous mh files (previous mh did not crash).
disp('MH: I''m loading past metropolis-hastings simulations...')
file = dir([ MhDirectoryName '/' ModelName '_mh_history.mat' ]);
files = dir([ MhDirectoryName '/' ModelName '_mh*.mat']);
files = dir([ MhDirectoryName filesep ModelName '_mh*.mat']);
if ~length(files)
disp('MH:: FAILURE! there is no MH file to load here!')
return