findExtrema

版本 1.1.0.0 (5.6 KB) 作者: Stephen Anthony
Rapidly find all extrema points of an N-dimensional array
994.0 次下载
更新时间 2016/9/20

查看许可证

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.

引用格式

Stephen Anthony (2024). findExtrema (https://www.mathworks.com/matlabcentral/fileexchange/45338-findextrema), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Descriptive Statistics 的更多信息
致谢

参考作品: extrema.m, extrema2.m

启发作品: findExtrema(array,kernel,strict)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Minima did not work properly in version 1.0, only maxima.

1.0.0.0