Problem 45225. generate the matrix
given a value n (say 4) - generate the matrix like below
y= [0 1 2 3 4; -1 0 1 2 3; -2 -1 0 1 2; -3 -2 -1 0 1; -4 -3 -2 -1 0]
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers39
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
442 Solvers
-
Back to basics 11 - Max Integer
776 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
371 Solvers
-
Matlab Basics - Absolute Value
599 Solvers
-
157 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!