Problem 308. Matrix with different incremental runs
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Julio
on 12 Feb 2012
yes of course. Leading solution:
function b = matInc(a)
[b aa] = ndgrid(1:max(a), a);
b(b > aa) = 0;
end
regards,
Problem Recent Solvers110
Suggested Problems
-
157 Solvers
-
428 Solvers
-
How long is the longest prime diagonal?
367 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
336 Solvers
-
Matlab Basics - Convert a row vector to a column vector
519 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!