how can do get this

1 Ansicht (letzte 30 Tage)
Manav Divekar
Manav Divekar am 7 Dez. 2021
Bearbeitet: Manav Divekar am 7 Dez. 2021
If a vector

Akzeptierte Antwort

David Hill
David Hill am 7 Dez. 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);

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by