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

3 visualizaciones (últimos 30 días)
I dont have signal processing toolbox in my matlab package so I cant use findpekas.

Respuesta aceptada

Matt J
Matt J el 1 de Jul. de 2019
Editada: Matt J el 1 de Jul. de 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 comentarios
Matt J
Matt J el 1 de Jul. de 2019
The code I gave you does give the location.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by