function [x y z] = find_minimums(AA) z=min(min(AA)); [x y]=find(AA==z); end