Matrix with two diagonals: Difference between revisions
→{{header|Matlab}}: "Matlab"=>"MATLAB"
m (→{{header|Wren}}: Changed to Wren S/H) |
(→{{header|Matlab}}: "Matlab"=>"MATLAB") |
||
Line 2,111:
1 0 0 0 1)</pre>
=={{header|
<syntaxhighlight lang="matlab">function A = diagdiag(N, sparse)
% Create an diagonal-diagonal square matrix.
|