Given n, generate the following matrix:
a = [ n n-1 n-2 ... 2 1;
n-1 n-1 n-2 ... 2 1;
n-2 n-2 n-2 ... 2 1;
. . . . . .;
. . . . . .;
. . . . . .;
2 2 2 ... 2 1;
1 1 1 ... 1 1]
Good luck!
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers125
Suggested Problems
-
Extract leading non-zero digit
2244 Solvers
-
Back to basics 8 - Matrix Diagonals
962 Solvers
-
529 Solvers
-
Put Two 1D matrices into one 1D matrix
140 Solvers
-
299 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
this problem is similar with Problem 1630. ~~~~~~~ WAVE ~~~~~~~~~
Apologies! Didn't see this problem until just recently.