From c52d9604235d82bc9f9252a1ad848d43df26bff6 Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@ec.europa.eu> Date: Thu, 6 Jan 2022 14:51:56 +0100 Subject: [PATCH] fixed index of variable names defined more than once (cherry picked from commit bad52b292dc214210705e43388ae9b8c86bb2aa0) --- matlab/varlist_indices.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/varlist_indices.m b/matlab/varlist_indices.m index c28c00fc62..0e67afb514 100644 --- a/matlab/varlist_indices.m +++ b/matlab/varlist_indices.m @@ -65,7 +65,7 @@ if length(i_var_unique_present)~=nvar_present k = find(~ismember((1:length(i_var))',index_unique_present) & i_var~=0); str = 'The following symbols are specified twice in the variable list and are considered only once:'; for ii = 1:length(k) - str = sprintf('%s %s', str, sublist{i_var(k(ii))}); + str = sprintf('%s %s', str, sublist{k(ii)}); end warning('%s\n', str) end -- GitLab