Anonymous user
Matrix with two diagonals: Difference between revisions
m
→{{header|Matlab}}
Line 1,389:
ans =
Columns 1 through
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
>> diagdiag(7, true)
|