gistlib
To calculate the transpose of a matrix in MATLAB, you can use the transpose function or the apostrophe symbol.
transpose
main.m% create a 3x2 matrix A = [1 2; 3 4; 5 6]; % Method 1: using the transpose function AT = transpose(A) % Method 2: using the apostrophe symbol A_T = A' 164 chars11 lines
% create a 3x2 matrix A = [1 2; 3 4; 5 6]; % Method 1: using the transpose function AT = transpose(A) % Method 2: using the apostrophe symbol A_T = A'
Both methods will give you the same result, which is the transpose of the matrix A.
A
gistlibby LogSnag