Respuesta aceptada

David Hill
David Hill el 7 de Dic. de 2021

0 votos

You could simply look at the difference
a=[5 9.8 15 6 10 9.5 9.7 9.8 9.8 9.8 9.8];
idx=find(diff(a)==0,1);

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 7 de Dic. de 2021

Editada:

el 7 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by