function x=inf2nan(x)
% inf2nan - convert infs to nans
%
% inf2nan :: [Size] -> [Size].

x(isinf(x))=nan;
