close all
clear all

size=14;
norm=180;

m1=load('Medição de corrente pelo pot (sem res)_M4_up#pos_vpot_posEff_impTime.txt');
m2=load('Medição de corrente pelo pot (sem res)_media_M421#pos_vpot_posEff_impTime.txt');
N1=1:length(m1);
N2=1:floor(length(m2)/2);

figure(1);
axes('fontsize',size);
plot(m1(N1,3),m1(N1,4)/norm,'b.',m2(N2,3),m2(N2,4)/norm,'ks','linewidth',2);
axis([-100 100 -0.25 1.001])
grid on
xlabel('Position (degrees)','fontsize',size);
ylabel('Current (normalized)','fontsize',size)
legend('Load mass: 675g','Load mass: 1378g','location','SouthWest');


m1=load('Medição de corrente pelo pot (sem res)_M4_down#pos_vpot_posEff_impTime.txt');
m2=load('Medição de corrente pelo pot (sem res)_media_M421#pos_vpot_posEff_impTime.txt');
N1=1:length(m1);
N2=ceil(length(m2)/2):length(m2);

figure(2);
axes('fontsize',size);
plot(m1(N1,3),m1(N1,4)/norm,'b.',m2(N2,3),m2(N2,4)/norm,'ks','linewidth',2);
axis([-100 100 -0.25 1.001])
grid on
xlabel('Position (degrees)','fontsize',size);
ylabel('Current (normalized)','fontsize',size)
legend('Load mass: 675g','Load mass: 1378g','location','SouthEast');
