how can do get this

7 visualizzazioni (ultimi 30 giorni)
Manav Divekar
Manav Divekar il 7 Dic 2021
Modificato: Manav Divekar il 7 Dic 2021
If a vector

Risposta accettata

David Hill
David Hill il 7 Dic 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);

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by