This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Thomas Pingnam
on 15 Nov 2017
my code works on my PC but not on this..
a = [1:(n^2)];
a = reshape(a,[],n)'
Suggested Problems
-
Back to basics 13 - Input variables
270 Solvers
-
Sum of first n terms of a harmonic progression
454 Solvers
-
697 Solvers
-
Generate N equally spaced intervals between -L and L
893 Solvers
-
1438 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!