function [x,y]=maximumcoordinates(a)
    [xval,xpos]=max(a);
    [yval,y]=max(xval);
    x=xpos(y);
    
end