Matrix transposition: Difference between revisions
Content added Content deleted
Line 1,102: | Line 1,102: | ||
=={{header|MATLAB}}== |
=={{header|MATLAB}}== |
||
Matlab contains two built-in methods of transposing a matrix: by using the "transpose(matrix)" function, or by using the " ' " operator. |
Matlab contains two built-in methods of transposing a matrix: by using the "transpose(matrix)" function, or by using the " .' " operator. The " ' " operator yields the complex conjugate transpose. |
||
<lang Matlab>>> transpose([1 2;3 4]) |
<lang Matlab>>> transpose([1 2;3 4]) |
||
Line 1,111: | Line 1,111: | ||
2 4 |
2 4 |
||
>> [1 2;3 4]' |
>> [1 2;3 4].' |
||
ans = |
ans = |