function[m]=minimum(mat);
m=min(min(mat));
endfunction;
