python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How do I create a symmetric matrix with a linearly decreasing diagonal in MatLab?
I'm trying to create a symmetric n by n matrix where the symmetry line is linearly decreasing from n to 1.
For example a 5 by 5 would be:
5 4 3 2 1
4 4 3 2 1
3 3 3 2 1
2 2 2 2 1
1 1 1 1 1
Thanks
SeanBeggan
Votes: 0
Answers: 2
Filling matrix with characters so they form a neat cross, where every lesser diagonal is (char + 1)
The goal is to plot this pattern, where N is in [4,100] range. Main diagonals are always 'a', neighbours of a should be b, neighbours of b should be c and so on. If we have already iterated to z char...
Trusty_Investigator
Votes: 0
Answers: 1
XWPF POI adding shape line to top and bottom of every page
How to adding shape line to top and bottom of every document page. Which document have more pages. In image was i give yellow circle. thanks
public static XWPFRun GaRing (XWPFParagraph paragraph, Str...
Eko
Votes: 0
Answers: 1
N queens and checking for diagonals
I have an assignment where I have to solve the n queens problem. the placement of the queens HAS to be randomized which is why i have a shuffle function.
Our teacher wants us to prompt the user to ent...
user18131793
Votes: 0
Answers: 1