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