diff --git a/src/dynare_gui.m b/src/dynare_gui.m index 622da14dfedcea80e3977a06f151ed529b745af8..8c40b359617718dbbb87281c68bb17721362bf95 100644 --- a/src/dynare_gui.m +++ b/src/dynare_gui.m @@ -125,7 +125,7 @@ if (exist('M_', 'var') && isstruct(M_)) || (exist('oo_', 'var') && isstruct(oo_) 'It seems like you have already run dynare. Do you want to use the output in the workspace?', ... 'DynareGUI', 'Yes', 'No', 'Yes'); if strcmp(answer, 'No') - evalin('global', 'clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_'); + evalin('base', 'clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_'); else if ~(exist([M_.fname filesep 'model' filesep 'json' filesep 'modfile-original.json'], 'file') == 2 ... && exist([M_.fname filesep 'model' filesep 'json' filesep 'modfile.json'], 'file') == 2)