How to Create an nxn Matrix with Opposite Diagonal Elements in LaTeX?

  • Context: LaTeX 
  • Thread starter Thread starter azdang
  • Start date Start date
  • Tags Tags
    Latex Matrix
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 8K views
azdang
Messages
80
Reaction score
0
Help Making A Matrix in Latex??

Hi, I need to make an nxn square matrix using Latex with 1's starting in the bottom left all the way up to the top right on that sort of opposite diagonal. I can't figure out to do it. Can anyone help? Thank you.
 
Physics news on Phys.org


Hi Tiny Tin, thanks for the website. I have a few websites that I look at often for Latex help, but I haven't come across anything helpful. I have no trouble making normal diagonal matrices, but I don't know how to only get elements in positions [tex]a_{(n,1)},a_{(n-1,2)},a_{(n-2,3)},...a_{(1,n)}[/tex].

And I don't want any vertical dots or anything because all other elements are zero. The only place I would want dots would be on this reverse diagonal in between elements [tex]a_{n,1}[/tex] and [tex]a_{1,n}[/tex] to indicate that \lambda is along this diagonal.
 
azdang said:
Hi Tiny Tin, thanks for the website. I have a few websites that I look at often for Latex help, but I haven't come across anything helpful. I have no trouble making normal diagonal matrices, but I don't know how to only get elements in positions [tex]a_{(n,1)},a_{(n-1,2)},a_{(n-2,3)},...a_{(1,n)}[/tex]

:rolleyes:
look at the link!​