From 315bfa6f511b723e339db980372d387d16f34f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 19 Jan 2021 16:26:36 +0100 Subject: [PATCH] SUR OLS: compatibility fix for MATLAB R2014a MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Under MATLAB R2014a, the strjoin() function wants a 1×n cell array, and rejects a n×1 cell array. Octave and MATLAB R2020b are more permissive. --- matlab/ols/sur.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/ols/sur.m b/matlab/ols/sur.m index 0f3b7ccb5..618e4cbe6 100644 --- a/matlab/ols/sur.m +++ b/matlab/ols/sur.m @@ -18,7 +18,7 @@ function varargout = sur(ds, param_names, eqtags, model_name, noniterative, ds_r % SPECIAL REQUIREMENTS % dynare must have been run with the option: json=compute -% Copyright (C) 2017-2020 Dynare Team +% Copyright (C) 2017-2021 Dynare Team % % This file is part of Dynare. % @@ -113,7 +113,7 @@ nobs = Y{1}.nobs; [Y, lhssub, X, constrained] = put_in_sur_form(Y, lhssub, X); if nargin == 1 && size(X, 2) ~= M_.param_nbr - warning(['Not all parameters were used in model: ' strjoin(setdiff(M_.param_names, X.name), ', ')]); + warning(['Not all parameters were used in model: ' strjoin(setdiff(M_.param_names, X.name)', ', ')]); end %