extrema.m, extrema2.m
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Search all the maxima and minima points (peaks) in a time series (vector) or a surface (matrix), via columns, rows and crossing diagonals, ignoring NaN's elements.
USAGE:
[zmax,imax,zmin,imin]= extrema2(peaks);
where zmax (zmin) are the maxima (minima) elements and imax (imin) their linear index (check IND2SUB).
They come with the examples on the screenshot.
These are the same files as EXTREME.M and EXTREME2.M, but updated.
Cite As
Carlos Adrian Vargas Aguilera (2024). extrema.m, extrema2.m (https://www.mathworks.com/matlabcentral/fileexchange/12275-extrema-m-extrema2-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Microscopy Image Browser (MIB), MinimaMaxima3D, Extrema, findExtrema, Bi dimensional Emperical Mode Decomposition (BEMD), findDepressions, TeloTool - Terminal Restriction Fragment Analysis, Automatic pattern recognition of Head-And-Shoulder
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.
extrema/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Change the name to EXTREMA and EXTREMA2. Added definition. Little changes on the submit.
|