From 139f5ae750eececbb5bc765c0622cf1ad2856c3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 18 Mar 2015 16:03:41 +0100
Subject: [PATCH] ilu function has been implemented in Octave 4.0.

(manually cherry picked from commit 80f512b90bc85fe4208085b5d7ef8ed58d58a303)
---
 matlab/dynare_config.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m
index 637d80ea74..5d24b70ace 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -90,8 +90,8 @@ if ~isoctave && matlab_ver_less_than('7.4')
     addpath([dynareroot '/missing/bsxfun'])
 end
 
-% ilu is missing in old versions of MATLAB and in Octave
-if isoctave || matlab_ver_less_than('7.4')
+% ilu is missing in old versions of MATLAB and in Octave < 4.0
+if (isoctave && octave_ver_less_than('4.0')) || matlab_ver_less_than('7.4')
     addpath([dynareroot '/missing/ilu'])
 end
 
-- 
GitLab