Selective filtering of a 2D matrix
Version 1.0.0.0 (5.11 KB) by
Gabriel Mantegna
This function smooths a 2D matrix only around the points where the slope exceeds a given threshold.
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 .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Data Analysis >
- Radar > Mapping Toolbox > Data Analysis >
Find more on Data Analysis in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
