1 function plotGenericError(pathName)
7 errors = importMatrices(pathName);
8 nRow = size(errors, 1);
9 nStep = size(errors, 3);
12 totSecondPassed = sControlLoop*(nStep-1);
13 seconds = 0:sControlLoop:totSecondPassed;
22 ylab = ylabel('errors [m, rad]');
24 tq = title("Cartesian Error");
26 leg = legend('$x$','$y$', '$z$', '$roll$', '$pitch$', '$yaw$');
27 set(leg, 'Interpreter', 'latex', 'FontSize' , legFontSize);
28 set(ylab, 'Interpreter', 'latex', 'FontSize' , ylabFontSize);
30 set (tq, 'Interpreter', 'latex', 'FontSize' , titleFontSize);
42 % a(:) = norms(i,1,:);
46 % ylab = ylabel('norms');
48 % tq = title("Norms (lin, ang) of Cartesian Error between the two coincident pipes");
50 % leg = legend('Linear', 'Angular');
51 % set(leg, 'Interpreter', 'latex', 'FontSize' , legFontSize);
52 % set(ylab, 'Interpreter', 'none', 'FontSize' , ylabFontSize);
54 % set (tq, 'Interpreter', 'latex', 'FontSize' , titleFontSize);