How to delete values when value is 3&4 then 7&8 then 11&12....
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (1)
KSSV
on 13 Feb 2020
If you have an array A...To remove a specific element use:
A(A==val) = [] ;
2 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!