I want to take the smallest value from each step i.e how can I turn the array below into something like this? (636, 1727, 2829, ... 6109 ...)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Inteeskimo
am 11 Nov. 2017
Beantwortet: Image Analyst
am 11 Nov. 2017
636 637 638 639 640 641 642 1727 1728 1729 1730 1731 1732 1733 1734 2829 2830 2831 2832 2833 2834 2835 3936 3937 3938 3939 3940 3941 5025 5026 5027 5028 5029 5030 6109 6110 6111 6112 6113 6114...
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 11 Nov. 2017
Try this:
changeIndexes = [1, (find(diff(m) > 500) + 1)]
values = m(changeIndexes)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices 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!