From b7d66e8fbbaaa09f674a95edcb0d9d550273dbd0 Mon Sep 17 00:00:00 2001 From: Swathi Sheshadri Date: Thu, 12 Dec 2019 08:56:14 +0100 Subject: [PATCH] minor bug fix --- Codes/helper_functions/simple_3Ddata_plotter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Codes/helper_functions/simple_3Ddata_plotter.m b/Codes/helper_functions/simple_3Ddata_plotter.m index 329944c..3288576 100755 --- a/Codes/helper_functions/simple_3Ddata_plotter.m +++ b/Codes/helper_functions/simple_3Ddata_plotter.m @@ -191,7 +191,7 @@ i_1 = drawline(ipairs,1); i_2 = drawline(ipairs,2); %Edge length reconstruction - recondata(:,ipairs,imodes) = sqrt(sum((coords3d(:,3*(i_1-1)+1:3*i_1,1) - coords3d(:,3*(i_2-1)+1:3*i_2,1)) .^ 2,2)); + recondata(:,ipairs,imodes) = sqrt(sum((coords3d(:,3*(i_1-1)+1:3*i_1,imodes) - coords3d(:,3*(i_2-1)+1:3*i_2,imodes)) .^ 2,2)); errorinrecon(:,ipairs,imodes) = abs(recondata(:,ipairs,imodes) - ground_truth(ipairs)); end