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

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Adam Danz
Adam Danz il 4 Dic 2019
Modificato: Adam Danz il 27 Gen 2020
The quesiton is unclear. An example would probably clear things up.

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Propagation and Channel Models in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by