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

1 Ansicht (letzte 30 Tage)
I dont have signal processing toolbox in my matlab package so I cant use findpekas.

Akzeptierte Antwort

Matt J
Matt J am 1 Jul. 2019
Bearbeitet: Matt J am 1 Jul. 2019
d=conv( [A(1); A(:); A(end)], [1 ;-2 ;1], 'valid');
saddles=find(d==0)
maxs=find(d>0)
mins=find(d<0)
  5 Kommentare
Matt J
Matt J am 1 Jul. 2019
The code I gave you does give the location.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by