How can i locate where two column values are the same in a row?

2 visualizaciones (últimos 30 días)
I have a column of 400 numbers that vary depending on input and i want to detect when the become constant (towards the end).
  1 comentario
Adam Danz
Adam Danz el 4 de Dic. de 2019
Editada: Adam Danz el 27 de En. de 2020
The quesiton is unclear. An example would probably clear things up.

Iniciar sesión para comentar.

Respuesta aceptada

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH el 4 de Dic. de 2019
a=[1 2 3 4 4 4 4];
s=find([diff(a) 1]==0,1,'first')

Más respuestas (0)

Categorías

Más información sobre Propagation and Channel Models en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by