yes of course. Leading solution:
function b = matInc(a)
[b aa] = ndgrid(1:max(a), a);
b(b > aa) = 0;
end
regards,
Sort a list of complex numbers based on far they are from the origin.
4355 Solvers
963 Solvers
165 Solvers
254 Solvers
381 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!