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

2 visualizzazioni (ultimi 30 giorni)
I dont have signal processing toolbox in my matlab package so I cant use findpekas.

Risposta accettata

Matt J
Matt J il 1 Lug 2019
Modificato: Matt J il 1 Lug 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 Commenti

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by