Matrix with two diagonals: Difference between revisions

m
Line 1,389:
ans =
 
Columns 1 through 67
 
1 0 0 0 0 0 1
0 1 0 0 0 1 0
0 0 1 0 1 0 0
0 0 0 1 0 0 0
0 0 1 0 1 0 0
0 1 0 0 0 1 0
1 0 0 0 0 0 1
 
Column 7
 
1
0
0
0
0
0
1
 
>> diagdiag(7, true)