how can do get this
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Manav Divekar
el 7 de Dic. de 2021
Editada: Manav Divekar
el 7 de Dic. de 2021
If a vector
0 comentarios
Respuesta aceptada
David Hill
el 7 de Dic. de 2021
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);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!