For example, if n=2 (maximum value), the output matrix should be
[1 1 1 1 1;
1 2 2 2 1;
1 2 1 2 1;
1 2 2 2 1;
1 1 1 1 1]
where you go from inside to outside starting from 1 to 2(maximum value) and again move back from 2 to 1.
You should call this a volcano matrix!
Could also be named an Atoll matrix
Thanks Ned, Richard for good suggestion. I have changed Problem Title accordingly.
nice!this is the easiest way to translate to another language.
Find best domino orientation
Volume of a Parallelepiped
Create a Multiplication table matrix...
Generate a random matrix A of (1,-1)
Sum the numbers on the main diagonal
Mirror Image matrix across anti-diagonal
Basics: Divide integers to get integer outputs in all cases
Calculate compression ratio of engine
Calculate Engine Power
Determine value using Look-up table method
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office