From 88b427f7bca77d195ce6d91c3fa0cd1f33444f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 16 Jun 2021 17:36:00 +0200 Subject: [PATCH] Compatibility fix for MATLAB R2014a MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MATLAB R2014a does not like the syntax “abs(x).data” where “x” is a dseries. --- tests/pac/trend-component-19-growth-lin-comb/example1.mod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pac/trend-component-19-growth-lin-comb/example1.mod b/tests/pac/trend-component-19-growth-lin-comb/example1.mod index 41c7a19902..daed6065c8 100644 --- a/tests/pac/trend-component-19-growth-lin-comb/example1.mod +++ b/tests/pac/trend-component-19-growth-lin-comb/example1.mod @@ -126,6 +126,7 @@ fprintf('Estimate of e_c_m: %f \n', e_c_m_iterative_ols) fprintf('Estimate of c_z_1: %f \n', c_z_1_iterative_ols) fprintf('Estimate of c_z_2: %f \n', c_z_2_iterative_ols) -if any(abs(resid_nls-resid_iterative_ols).data > 1e-4) +difference = abs(resid_nls-resid_iterative_ols); +if any(difference.data > 1e-4) error('Iterative OLS and NLS do not provide consistent results.') end -- GitLab