%CUMMIN Cumulative smallest component.
%   Y = CUMMIN(X) computes the cumulative smallest component of X along
%   the first non-singleton dimension of X. Y is the same size as X.
% 
%   Y = CUMMIN(X,DIM) cumulates along the dimension specified by DIM.
% 
%   Y = CUMMIN(___,DIRECTION) cumulates in the direction specified by
%   DIRECTION using any of the above syntaxes:
%
%     "forward" - (default) uses the forward direction, from beginning to end.
%     "reverse" -           uses the reverse direction, from end to beginning.
%
%   Y = CUMMIN(___,NANFLAG) specifies how NaN values are treated:
%
%   "omitmissing" / "omitnan"       -
%                   (default) Ignores all NaN values and returns the minimum
%                   of the non-NaN elements. If all values are NaN, the
%                   result is NaN.
%   "includemissing" / "includenan" -
%                   Returns NaN if any value is NaN.
%
%   If X is complex, CUMMIN compares the magnitude of the elements of X.
%   In the case of equal magnitude elements, the phase angle is also used.
%
%   Example: 
%       X = [0 4 3; 6 5 2]
%       cummin(X,1)
%       cummin(X,2)
%       cummin(X,1,"reverse")
%       cummin(X,2,"reverse")
%
%   See also MIN, MOVMIN, CUMMAX, CUMSUM, CUMPROD.

%   Copyright 1984-2022 The MathWorks, Inc.

%   Built-in function.

