close all; clc; hold on; title("desiredSpeed = 1.0m/s"); xlabel("Amostra (10ms)"); ylabel("Aceleração (m/s²)") plot(encoderAccel); plot(imuAccel); ax = gca; yyaxis right; ylabel("Velocidade referência (m/s)"); plot(desiredSpeed1); ax.YAxis(1).Limits = [-15, 15]; ax.YAxis(1).Color = [0, 0, 0]; ax.YAxis(2).Limits = [-1, 1]; ax.YAxis(2).Color = [0, 0, 0]; ax.XAxis.Limits = [0, 500]; legend({'encoderAccel (m/s²)','imuAccel (m/s²)', 'desiredSpeed (m/s)'},'Location','southwest') hold off;