How to delete values when value is 3&4 then 7&8 then 11&12....
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
CalebJones
am 13 Feb. 2020
Bearbeitet: CalebJones
am 15 Feb. 2020
I have attached a mat file below.
1 repeates like 162 times
2 repeates like 172 times
I want to
keep 1 & 2
remove 3&4
keep 5&6
remove 7&8
keep 9&10
remove 11&12
so on.......
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 13 Feb. 2020
If you have an array A...To remove a specific element use:
A(A==val) = [] ;
2 Kommentare
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays 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!