Check setting of bayestopt_ in set_prior.m
ls2003.mod crashes, because
set_prior.m is called, which overwrites
bayestopt_ globally. The main culprit is the bottom line:
% Put bayestopt_ in matlab's workspace assignin('base','bayestopt_',bayestopt_);
I don't understand why we have
bayestopt_ as a function output and simultaneously setting it as a global variable. I would propose getting rid of the above statement.