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

1 vue (au cours des 30 derniers jours)
new2matlab
new2matlab le 4 Déc 2019
Modifié(e) : Adam Danz le 27 Jan 2020
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 commentaire
Adam Danz
Adam Danz le 4 Déc 2019
Modifié(e) : Adam Danz le 27 Jan 2020
The quesiton is unclear. An example would probably clear things up.

Connectez-vous pour commenter.

Réponse acceptée

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH le 4 Déc 2019
a=[1 2 3 4 4 4 4];
s=find([diff(a) 1]==0,1,'first')

Plus de réponses (0)

Catégories

En savoir plus sur Propagation and Channel Models dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by