x is a vector of integers from n to 1, find the remnant of the division of each element by its indice:
for example for n=4, x would be [4 3 2 1], and the out put is [0 1 2 1]
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers53
Suggested Problems
-
30445 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15797 Solvers
-
3087 Solvers
-
Matrix indexing with two vectors of indices
780 Solvers
-
443 Solvers
More from this Author29
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!