function y=mymin(x)
%
% return the min element of x 
%
  

n=length(x);

%  error handling ... skip

y=x(1);
for i=2:n
 if (x(i) < y) y=x(i); end;
end;


