


% -*- texinfo -*-
% @deftypefn {Function File} {} medfilt2(@var{A}, [@var{domain}, @var{padding}])
% Two dimensional median filtering.
%
% Replaces elements of @var{A} with the median of their neighbours defined
% by true elements of logical matrix @var{domain}. The default @var{domain}
% is a 3 by 3 matrix with all elements equal to 1. If @var{domain} is 1 by 2
% row vector, the domain matrix will be
% logical(ones(@var{domain}(2), @var{domain}(1))).
%
% Optional variable @var{padding} defines the padding used in augmenting
% the borders of @var{A}. See impad for details.
%
% @seealso{ordfilt2}
% @end deftypefn