function CoP=calccop(react)

% Características do pé
footdata;

amplifier_factor=1;

delta_reactx=0;
delta_reacty=-50;

N=size(react,1);
CoP=zeros(N,2);

for i=1:N
    if (sum(react(i,:))~=0)
        CoP(i,1)=sum((react(i,:)+delta_reactx).*sensor_locx)/sum(react(i,:)+delta_reactx)*amplifier_factor;
        CoP(i,2)=sum((react(i,:)+delta_reacty).*sensor_locy)/sum(react(i,:)+delta_reacty)*amplifier_factor;
    end
end

CoP=CoP*100;