function dX = internal_maxunpoolBackward(dZ, X, ~, indices)
% This function is undocumented and will change in a future release.

%   Copyright 2019 The MathWorks, Inc.

dX = zeros(size(X), 'like', dZ);           
dX(:) = dZ(indices);

end
