How to delete Multiple of any Value in Array In MATLAB
3 views (last 30 days)
Show older comments
Med Future on 27 Dec 2022
Commented: Dyuman Joshi on 27 Dec 2022
Hello,I Have the following dataset, I want to delete the value which are multiple of any value present in array.
For example in this array 70 is present which is multiple of 35.
Edited: Dyuman Joshi on 27 Dec 2022
%all the different value present in the array
y( (rem(y,j)==0) & y~=j )=;
More Answers (0)
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!