How to find maxima and minima of a column matrix without using findpeaks ?

1 次查看(过去 30 天)
I dont have signal processing toolbox in my matlab package so I cant use findpekas.

采纳的回答

Matt J
Matt J 2019-7-1
编辑:Matt J 2019-7-1
d=conv( [A(1); A(:); A(end)], [1 ;-2 ;1], 'valid');
saddles=find(d==0)
maxs=find(d>0)
mins=find(d<0)
  5 个评论

请先登录,再进行评论。

更多回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by