how can do get this

1 view (last 30 days)
Manav Divekar
Manav Divekar on 7 Dec 2021
Edited: Manav Divekar on 7 Dec 2021
If a vector

Accepted Answer

David Hill
David Hill on 7 Dec 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);

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!