How to delete values when value is 3&4 then 7&8 then 11&12....
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
CalebJones
le 13 Fév 2020
Modifié(e) : CalebJones
le 15 Fév 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 commentaires
Réponse acceptée
Plus de réponses (1)
KSSV
le 13 Fév 2020
If you have an array A...To remove a specific element use:
A(A==val) = [] ;
2 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!