-
2 Comments
Shuang-Wei
on 6 Jan 2014
brilliant!
niu
on 28 Feb 2014
clever!
abs(sort(-cumprod(-ones(n)).*reshape(1:n^2,n,n)',2));
This one is more clear.what do you think?
Suggested Problems
-
Return the 3n+1 sequence for n
8398 Solvers
-
6691 Solvers
-
299 Solvers
-
Arrange vector in ascending order
797 Solvers
-
Convert a Cell Array into an Array
2049 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!