function y = movmax(x,k,varargin)
%MATLAB Code Generation Library Function

%    Limitations:
%    * When using includenan, the NaN value returned is the last NaN in the
%      computation window rather than the first.

%   Copyright 2016-2020 The MathWorks, Inc.
%#codegen

narginchk(2,inf);
coder.internal.allowEnumInputs;
coder.internal.prefer_const(k,varargin);
y = movfunDispatch('max',x,k,varargin{:});