function min=miscmin(x)
 n=length(x);
 if (n<1)
   return;
 end
 min=x(1);
 for ii=2:n
   if ( x(ii) < min )
      min = x(ii);
   end
 end
end
