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

Fix problem with load_mh_file option under Octave/MinGW

parent 2aa7cf37
......@@ -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
......
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