Problem 1671. Generate the Matrix!
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
		Mehmet OZC
    	on 22 Jun 2013
	
	
  	this problem is similar with Problem 1630. ~~~~~~~ WAVE ~~~~~~~~~
		JeremyR
    	on 13 Jul 2013
	
	
  	Apologies! Didn't see this problem until just recently.
Solution Comments
Show commentsProblem Recent Solvers124
Suggested Problems
- 
         
         2123 Solvers 
- 
         
         5812 Solvers 
- 
         Find the peak 3n+1 sequence value 2542 Solvers 
- 
         
         240 Solvers 
- 
         
         476 Solvers 
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!