Jump to content

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|MatlabMATLAB}}==
<syntaxhighlight lang="matlab">function A = diagdiag(N, sparse)
% Create an diagonal-diagonal square matrix.
338

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.