Réponse acceptée

David Hill
David Hill le 7 Déc 2021

0 votes

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);

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Produits

Version

R2021b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by