Jump to content

Matrix transposition: Difference between revisions

m
→‎{{header|MATLAB}} / {{header|Octave}}: There is a proper Octave entry below
m (→‎{{header|Liberty BASIC}}: Formatted output)
m (→‎{{header|MATLAB}} / {{header|Octave}}: There is a proper Octave entry below)
Line 1,791:
transposedMatrix = Transpose[originalMatrix]</lang>
 
=={{header|MATLAB}} / {{header|Octave}}==
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])
Cookies help us deliver our services. By using our services, you agree to our use of cookies.