From 95acf31a697bb84708cb941310b8315e3b96a3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Odysseus=29?= Date: Thu, 30 Jan 2020 11:44:54 +0100 Subject: [PATCH] Fixed optional renaming of the variables. --- matlab/cherrypick.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/cherrypick.m b/matlab/cherrypick.m index 24796652d..a5de0e262 100644 --- a/matlab/cherrypick.m +++ b/matlab/cherrypick.m @@ -93,7 +93,7 @@ for i=1:length(eqtags) [variable_has_to_be_renamed, id] = ismember(eqnum, [rename{:,1}]); if variable_has_to_be_renamed tmp = strsplit(rename{id,2}, '->'); - LHS = exactstrrep(LHS, tmp{1}, tmp{2}); + lhs_expression = exactstrrep(lhs_expression, tmp{1}, tmp{2}); RHS = exactstrrep(RHS, tmp{1}, tmp{2}); rep = strcmp(tmp{1}, enames); if any(rep)