matric transpose code example Example: matlab transpose % To get the transpose of a matrix, there are two methods: B = A.' B = transpose(A)