How can i locate where two column values are the same in a row?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
new2matlab
am 4 Dez. 2019
Bearbeitet: Adam Danz
am 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 Kommentar
Akzeptierte Antwort
JESUS DAVID ARIZA ROYETH
am 4 Dez. 2019
a=[1 2 3 4 4 4 4];
s=find([diff(a) 1]==0,1,'first')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!