findDepressions
This function finds depressions on a 2D surface. It was intended to model the formation of liquid pools on a simulated geological surface (lakes pooling in depressions).
Usage:
[dMask, dDepths] = findDepressions(heights)
Returns both the logical mask of where depressions exist and the depths of those depressions.
Cite As
Luke Winslow (2021).findDepressions(//www.tatmou.com/matlabcentral/fileexchange/35452-finddepressions), MATLAB Central File Exchange. Retrieved.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by:extrema.m, extrema2.m
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.