From c7a57e590674461d3e5d70cd406a6911cbb7e36a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 5 Jun 2018 17:14:41 +0200
Subject: [PATCH] corrcoef is included in Octave 4.4

---
 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 8a582580f..513b99c33 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -94,8 +94,8 @@ if isoctave
     p{end+1} = '/missing/ordeig';
 end
 
-% corrcoef with two outputs is missing in Octave (ticket #796)
-if isoctave && ~user_has_octave_forge_package('nan')
+% corrcoef with two outputs is missing in Octave < 4.4 (ticket #796)
+if isoctave && octave_ver_less_than('4.4') && ~user_has_octave_forge_package('nan')
     p{end+1} = '/missing/corrcoef';
 end
 
-- 
GitLab