From 73be95423d3f8c1aa05a5edae2712ffbf646602a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 22 Nov 2023 12:06:34 +0100 Subject: [PATCH] Bump minimal required version of MATLAB to R2018b Ref. dynare#1907 --- src/ModFile.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ModFile.cc b/src/ModFile.cc index 609d75db..a083f770 100644 --- a/src/ModFile.cc +++ b/src/ModFile.cc @@ -817,12 +817,8 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global, mOutputFile << "warning off" << endl; // This will be executed *after* function warning_config() if (clear_all) - mOutputFile << "if ~isoctave && matlab_ver_less_than('8.6')" << endl - << " clear all" << endl - << "else" << endl - << " clearvars -global" << endl - << " clear_persistent_variables(fileparts(which('dynare')), false)" << endl - << "end" << endl; + mOutputFile << "clearvars -global" << endl + << "clear_persistent_variables(fileparts(which('dynare')), false)" << endl; else if (clear_global) mOutputFile << "clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info;" << endl; -- GitLab