check for decrease and increase
Mostrar comentarios más antiguos
i have a matrix and check for a column to see if the values are rapidly decreasing in steps of five. how to check for it? for example the matrix is x and the second column.
Respuesta aceptada
Más respuestas (3)
madhan ravi
el 5 de Nov. de 2018
Editada: madhan ravi
el 5 de Nov. de 2018
x=[100:-5:0] %an example
issorted(x,'strictdescend') %to check if they are sorted
abs(diff(x))==5
Image Analyst
el 5 de Nov. de 2018
Editada: Image Analyst
el 23 de Nov. de 2021
1 voto
Try the function findchangepts(), in versions of MATLAB r2016a and later.
Palnati saidatta
el 23 de Nov. de 2021
0 votos
x=[100:-5:0] %an example
issorted(x,'strictdescend') %to check if they are sorted
abs(diff(x))==5
1 comentario
Image Analyst
el 23 de Nov. de 2021
Categorías
Más información sobre Transforms 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!