Anonymous user
Matrix transposition: Difference between revisions
→{{header|MATLAB}}: There is no need to define a transpose function in Matlab, the language already has these functions built-in.
m (→{{header|Perl 6}}: edit for style) |
(→{{header|MATLAB}}: There is no need to define a transpose function in Matlab, the language already has these functions built-in.) |
||
Line 979:
=={{header|MATLAB}}==
Matlab contains two built-in methods of transposing a matrix: by using the "transpose(matrix)" function, or by using the "'" operator.
<lang Matlab>>> transpose([1 2;3 4])
ans =
1 3
2 4
>> [1 2;3 4]'
ans =
1 3
2 4</lang>
=={{header|Maxima}}==
|