function [limits] = lim( array )
%[min, max] = lim98( array )
%   This function sorts the array and finds the limits after ignoring the
%   top 5% of data.

limits(1) = min(min(array(~isnan(array) & ~isinf(array))));
limits(2) = max(max(array(~isnan(array) & ~isinf(array))));

end