@BAYMAX This syntax is bit confusing., I never used it. btw, it should be A[[{1,n},{1,n}]] not as you wrote A[{1,n},{1,n}]. But you can see what it does by inspection.
Ok, glad it helps. I never used it before actually myself. good to know one can use it.
Overall, I find Matlab matrix syntax the best. It is easier to understand. easier than Maple, Mathematica, Julia, Python, etc... THis is because Matlab was originally designed for matrices.