Find the lowest values in vector array.
Mostrar comentarios más antiguos
I would like to find only the lowest values in the vector and plot them along with origin signal. Here is what I did, but couldn't show the two lowest values in this example. So the goal is to find all lowest values. Not the maximum lowest one.
load('freeFall_1.txt')
freeFall=freeFall_1(:);
x=freeFall(1:100)
window_size2=4
simple2 = tsmovavg(x,'s',window_size2,1);
[M,I] = min(simple2,[],2)
figure(6)
plot(simple2)
hold on
plot(M,I,'o')
4 comentarios
Rik
el 18 de Abr. de 2017
What do you mean with "all lowest values"? There is only 1 lowest value. Or do you mean the local minima?
Ahmed Mostfa
el 18 de Abr. de 2017
Ahmed Mostfa
el 18 de Abr. de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!