
function [mv,mx,my] = mix2(x)
% [mv,mx,my] = mix2(x)
% Find the min value and its position of a data matrix 
% Output:
% mv: minimum value;
% mx, my: x, y coordinates of the minimum
% By Yi-Ou Li Apr. 2005

[mv,mx] = min(x);
[mv,my] = min(mv);
mx = mx(my);
