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 Solvers109
Suggested Problems
-
3507 Solvers
-
246 Solvers
-
Number of 1s in a binary string
5243 Solvers
-
Calculate distance travelled when given radius and rotations
197 Solvers
-
Matlab Basics - y as a function of x
401 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!