Borrar filtros
Borrar filtros

I want to find indexes for maximum and minimum

1 visualización (últimos 30 días)
Young Lee
Young Lee el 20 de Oct. de 2018
Comentada: madhan ravi el 21 de Oct. de 2018
I am new to matlab and having difficulty. I want to find indexes for maximum and minimum and put them into sets of array. Here is what I have tried. I have no clue on how to produce data for minimum X and Y indexes. Much appreciated for help!
Ry = HeelArray(:,3);
Ry2= HeelArray(:,6);
plot (Ry)
hold on
plot (Ry2)
findpeaks(Ry2, 'Minpeakheight',500);
[Minima, MinIdx] = findpeaks(Ry2, 'Minpeakheight',500);
  1 comentario
Image Analyst
Image Analyst el 20 de Oct. de 2018
Can you attach HeelArray in a .mat file with the paper clip icon, and attach a PNG screenshot with the green and brown frame icon.

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 20 de Oct. de 2018
Editada: madhan ravi el 20 de Oct. de 2018
 findpeaks(-Ry2); %see carefully I added minus sign in front of Ry2
  4 comentarios
Young Lee
Young Lee el 21 de Oct. de 2018
Thanks that worked it out
madhan ravi
madhan ravi el 21 de Oct. de 2018
you’re welcome :)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by