From d4217c02b0fe47b12fd82fd640398659a0ff1c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 25 Feb 2019 14:56:53 +0100 Subject: [PATCH] Provisions for Octave 5 --- matlab/dynare_config.m | 8 ++++---- matlab/warning_config.m | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m index 9aeffe7f1..8d214fa49 100644 --- a/matlab/dynare_config.m +++ b/matlab/dynare_config.m @@ -83,8 +83,8 @@ if ~isoctave p{end+1} = '/missing/vec'; end -% ordeig() doesn't exist in Octave -if isoctave +% ordeig() doesn't exist in Octave < 5 +if isoctave && octave_ver_less_than('5') p{end+1} = '/missing/ordeig'; end @@ -117,8 +117,8 @@ if ~exist('struct2array') p{end+1} = '/missing/struct2array'; end -% isfile is missing in Octave and Matlab= 7.7, don't display a warning if we use deprecated % interface to set seed of random number generators