matlab 局部极值点,matlab实现快速搜索局部极值

extr.m 函数用于分析实数向量中的样本序列,找出局部极值点。返回一个包含最大值和最小值位置的逻辑向量。如果相邻元素有相等值,只返回一个位置。该函数注重内存效率和执行速度。提供精确和近似两种查找方式,适用于不同需求。附带演示示例和性能测试。
摘要由CSDN通过智能技术生成

Quick search for local extremes

The new function extr.m analyses the given real vector carrying a sequence of samples to be analyzed. At the end, it returns a cell array of extreme positions in the sequence. The cell array consists of two cells only. The first one contains the logical vector of maxima and the other the similar one of minima. Should more equal values be present in adjacent elements of the vector, only one position is returned. The attention is also paid on low memory requirements and a speed of the procedure.

Forms of calls:

L = extr(x); % Find true local extremes

% ..... x vector containing a sequence to be analyzed,

% ..... L cell array {L(1), L(2)}, where

% ..... L(1) is logical vector of positions of maxima,

% ..... L(2) is logical vector of positions of minima.

There are also circumstances, when the processing time is critical for a user, while the exact t

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值