Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Search all the maxima and minima points.
findExtrema.m is designed to find the extrema points (minima and maxima) from an N-dimensional array. This implementation runs much faster than http://www.mathworks.com/matlabcentral/fileexchange/12275-extrema-m-extrema2-m by making use of the imdilate function in the Image Processing Toolbox by Mathworks as suggested by Steve Eddins on Stack Overflow.
TYPICAL USAGE:
[minima,maxima] = findExtrema(array);
where minima (maxima) is a logical array of the same size as the input array whose elements are true if the corresponding element of the input array is a local minima (maxima).
Notes within the source code indicate (providing code) how to extend this function to special cases (such as inputs with NaN values, changing the search neighborhood). If only the maxima or minima are needed rather than both, using the included findMaxima.m or findMaxima.m functions will be twice as fast as findExtrema.m.
Citar como
Stephen Anthony (2026). findExtrema (https://es.mathworks.com/matlabcentral/fileexchange/45338-findextrema), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: extrema.m, extrema2.m
Inspiración para: findExtrema(array,kernel,strict)
Información general
- Versión 1.1.0.0 (5,61 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
