function  out  =  MyTraceGrupo2(A)

nFilasA   =  size(A,1);
nColumnsA =  size(A,2);
m         =  min(nFilasA,nColumnsA);
  
out       =  0;
for i=1:m
    out =  out + A(i,i)  ;
end
  
  
end
