function D = realminLike(X)
%REALMINLIKE realminLike codistributed array
%   
%   D = realminLike(P) is a codistributed scalar with the value of realmin for the
%   underlyingType of P and matching all other attributes.
%   
%   P must have floating-point underlying type.
%   
%   See also REALMIN, CODISTRIBUTED.


%   Copyright 2021 The MathWorks, Inc.

if ~isfloat(X)
    error(message("MATLAB:realmin:invalidPrototype"));
end
D = buildScalarLike(@realmin, X);