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