Selective filtering of a 2D matrix

This function smooths a 2D matrix only around the points where the slope exceeds a given threshold.
68 Downloads
Updated 30 Aug 2016

View License

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 (2024). Selective filtering of a 2D matrix (https://www.mathworks.com/matlabcentral/fileexchange/58901-selective-filtering-of-a-2d-matrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0