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

1 Ansicht (letzte 30 Tage)
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 Kommentar
Adam Danz
Adam Danz am 4 Dez. 2019
Bearbeitet: Adam Danz am 27 Jan. 2020
The quesiton is unclear. An example would probably clear things up.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Propagation and Channel Models finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by