From ac0ecde1d964f0d1c13b1b98869b390fd057071c Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Tue, 12 Sep 2023 19:24:32 +0200 Subject: [PATCH] mom: fix incorrect options-reference --- matlab/+mom/run.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/+mom/run.m b/matlab/+mom/run.m index 1a57a9be47..3f750906e2 100644 --- a/matlab/+mom/run.m +++ b/matlab/+mom/run.m @@ -590,7 +590,7 @@ fprintf('\n==== Method of Moments Estimation (%s) Completed ====\n\n',options_mo %reset warning state warning_config; -if isoctave && isfield(options_, 'prior_restrictions') && ... +if isoctave && isfield(options_mom_, 'prior_restrictions') && ... isfield(options_mom_.prior_restrictions, 'routine') % Octave crashes if it tries to save function handles (to the _results.mat file) % See https://savannah.gnu.org/bugs/?43215 -- GitLab