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!
this problem is similar with Problem 1630. ~~~~~~~ WAVE ~~~~~~~~~
Apologies! Didn't see this problem until just recently.
3417 Solvers
984 Solvers
271 Solvers
Generate a random matrix A of (1,-1)
161 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
229 Solvers