Fixed bug affecting prior restictions (removed the extension in the argument of str2func).

time-shift
Stéphane Adjemian (Scylla) 2014-07-28 13:00:31 +02:00
parent adbecb6fc9
commit 1e4c2e0881
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ end
% Check if a _prior_restrictions.m file exists
if exist([M_.fname '_prior_restrictions.m'])
options_.prior_restrictions.status = 1;
options_.prior_restrictions.routine = str2func([M_.fname '_prior_restrictions.m']);
options_.prior_restrictions.routine = str2func([M_.fname '_prior_restrictions']);
end
% Check that the provided mode_file is compatible with the current estimation settings.