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.
Gabriel Mantegna (2021). Selective filtering of a 2D matrix (https://www.mathworks.com/matlabcentral/fileexchange/58901-selective-filtering-of-a-2d-matrix), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.