how to get transpose of a matrix in matlab code example Example: transpose of a matrix in matlab B = A.' B = A' B = transpose(A)