in the vector x remove all multiples of N.
x = [1 2 3 4 5 6];
N = 2;
Then y = [1 3 5];
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers73
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15810 Solvers
-
6455 Solvers
-
Create a square matrix of multiples
502 Solvers
-
Set the array elements whose value is 13 to 0
1452 Solvers
-
612 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!