Problem 308. Matrix with different incremental runs
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
yes of course. Leading solution:
function b = matInc(a)
[b aa] = ndgrid(1:max(a), a);
b(b > aa) = 0;
end
regards,
Problem Recent Solvers109
Suggested Problems
-
Find the "ordinary" or Euclidean distance between A and Z
145 Solvers
-
Back to basics 22 - Rotate a matrix
823 Solvers
-
1148 Solvers
-
263 Solvers
-
8665 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!