This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Transpose of a matrix

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.




linalg::transpose(A) returns the transpose At of the matrix A.

linalg::transpose is an interface function for the method "transpose" of the matrix domain of A, i.e., instead of linalg::transpose(A) one may call A::dom::transpose(A) directly.


Example 1

We define a 3×4 matrix:

A := matrix([[1, 2, 3, 4], [-1, 0, 1, 0], [3, 5, 6, 9]])

Then the transpose of A is the 4 ×3 matrix:




A matrix of a domain of category Cat::Matrix

Return Values

Matrix of the same domain type as A.


Let A = (ai, j)1 ≤ im, 1 ≤ jn be an m×n matrix. Then the transpose of A is the n×m matrix:


Was this topic helpful?