Matrix transposition: Difference between revisions
Content added Content deleted
m (→{{header|Liberty BASIC}}: Formatted output) |
m (→{{header|MATLAB}} / {{header|Octave}}: There is a proper Octave entry below) |
||
Line 1,791: | Line 1,791: | ||
transposedMatrix = Transpose[originalMatrix]</lang> |
transposedMatrix = Transpose[originalMatrix]</lang> |
||
=={{header|MATLAB |
=={{header|MATLAB}}== |
||
Matlab contains two built-in methods of transposing a matrix: by using the <code>transpose()</code> function, or by using the <code>.'</code> operator. The <code>'</code> operator yields the [[conjugate transpose|complex conjugate transpose]]. |
Matlab contains two built-in methods of transposing a matrix: by using the <code>transpose()</code> function, or by using the <code>.'</code> operator. The <code>'</code> operator yields the [[conjugate transpose|complex conjugate transpose]]. |
||
<lang Matlab>>> transpose([1 2;3 4]) |
<lang Matlab>>> transpose([1 2;3 4]) |