Selective filtering of a 2D matrix

This function smooths a 2D matrix only around the points where the slope exceeds a given threshold.

You are now following this Submission

This function was originally developed for the smoothing of the 'steep' regions in terrain data for use by a CFD simulation, but could also be used for any 2D data matrix. It smooths only the regions of the 2D input matrix that are near the points where a given slope threshold is exceeded. The regions far from the points where the threshold is exceeded are left untouched.

Cite As

Gabriel Mantegna (2026). Selective filtering of a 2D matrix (https://www.mathworks.com/matlabcentral/fileexchange/58901-selective-filtering-of-a-2d-matrix), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0