Fast Local Extrema
Updated 20 Apr 2022
Moreno, M. (2023). Fast Local Extrema (https://www.mathworks.com/matlabcentral/fileexchange/108134-fast-local-extrema), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
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.
Corrections and improvements kindly suggested by Jan (see discussions)
Deletion of all intermediate variables
Speed boost by removal of an intermediate variable
Avoided array conversion from double to logical