They produce the same result only for _real_ values. The ‘regular’ transpose operator *|(')|* produces a _complex-conjugate_ transpose for complex numbers. With the dot operator *|(.')|* it produces the transpose without performing the complex-conjugate operation. *_Note_:* This is the only operation (that I am aware of) where the dot-operator does not signify element-wise operations, as it does with multiplication, division, and exponentiation. Answer from Star Strider on mathworks.com
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
transpose - Transpose vector or matrix - MATLAB
Create a matrix containing complex elements and compute its nonconjugate transpose. B contains the same elements as A, except the rows and columns are interchanged.
🌐
MathWorks
mathworks.com › symbolic math toolbox › symbolic computations in matlab › operators and elementary operations
transpose - Symbolic matrix transpose - MATLAB
Create a 2-by-2 matrix, the elements of which represent complex numbers. syms x y real A = [x + y*i x - y*i; y + x*i y - x*i] ... Find the nonconjugate transpose of this matrix. The nonconjugate transpose operator, A.', performs a transpose without conjugation.
Discussions

Transposing matrix using reshape
Hello, I am a student taking a class to learn matlab. For a project, our instructor is requiring us to transpose a function using the reshape command. Because of the way matlab reads matrixes, c... More on mathworks.com
🌐 mathworks.com
5
0
March 21, 2012
What is the difference between .' and ' when transposing a matrix?
I am new to MatLab, and when I try to transpose a matrix , it seems that using .' and ' produce the same effect. For matrix a, for example, I can do a.' a' and they produce the same result... More on mathworks.com
🌐 mathworks.com
3
2
May 4, 2018
Difference between .' and ' for taking the transpose of a matrix?
Looks like ' is Hermitian while .' is just transpose. More on reddit.com
🌐 r/matlab
4
1
November 29, 2020
Transpose a vector under certain conditions
If either input is a matrix, your program should throw a unique error (Create your own error message). You may not assume that the length of the vectors is known. I can use the transpose operator, the size function and length function to do this. I need the format to do this under these conditions. I've tried multiple ways but I keep getting errors. What should I do?Thanks! ... https://www.mathworks.com/matlabcentral... More on mathworks.com
🌐 mathworks.com
1
0
October 6, 2019
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
Matrices in the MATLAB Environment - MATLAB & Simulink
For complex matrices, another ... form the complex conjugate transpose. MATLAB uses the apostrophe operator (') to perform a complex conjugate transpose, and the dot-apostrophe operator (.') to transpose without conjugation....
🌐
MathWorks
mathworks.com › matlabcentral › answers › 32914-transposing-matrix-using-reshape
Transposing matrix using reshape - MATLAB Answers - MATLAB Central
March 21, 2012 - None of these involve the reshape function and as Walter points out reshape never alters the internal memory order (which is required for a general matrix transpose) so how the heck is reshape supposed to be involved in this in the first place? Sign in to comment. ... https://www.mathworks.com/matlabcentral/answers/32914-transposing-matrix-using-reshape#comment_69270
🌐
TutorialsPoint
tutorialspoint.com › matlab › matlab_matrix_transpose.htm
MATLAB - Transpose of a Matrix
MATLAB - Inverse of Matrix · MATLAB ... · Who is Who · Previous · Quiz · Next · The transpose operation switches the rows and columns in a matrix....
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
ctranspose - Complex conjugate transpose - MATLAB
B = A' computes the complex conjugate transpose of A. ... B = ctranspose(A) is an alternate way to execute A', but is rarely used. It enables operator overloading for classes. ... Create a 4-by-2 matrix.
Find elsewhere
🌐
Reddit
reddit.com › r/matlab › difference between .' and ' for taking the transpose of a matrix?
r/matlab on Reddit: Difference between .' and ' for taking the transpose of a matrix?
November 29, 2020 -

I don't think this is discussed anywhere here: https://www.mathworks.com/help/matlab/ref/transpose.html

It just says .' is the notation, even though ' has been working just fine for me.

It has a note about ' in the context of imaginary numbers, but I'm wondering about using this operator on matrices. Are .' and ' completely equivalent for matrices?

I know the . prefix usually makes an operation elementwise, but I'm not sure what that would mean in the context of taking a transpose

🌐
MathWorks
mathworks.com › matlabcentral › answers › 483783-transpose-a-vector-under-certain-conditions
Transpose a vector under certain conditions - MATLAB Answers - MATLAB Central
October 6, 2019 - If either input is a matrix, your program should throw a unique error (Create your own error message). You may not assume that the length of the vectors is known. I can use the transpose operator, the size function and length function to do this. I need the format to do this under these conditions. I've tried multiple ways but I keep getting errors. What should I do?Thanks! ... https://www.mathworks.com/matlabcentral/answers/483783-transpose-a-vector-under-certain-conditions#comment_753127
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
pagetranspose - Page-wise transpose - MATLAB
You can also assemble a collection of 2-D matrices into a higher dimensional array, like a 4-D or 5-D array, and in these cases pagetranspose still treats the fundamental unit of the array as a 2-D matrix that the function operates on, such as X(:,:,i,j,k,l). The cat function is useful for assembling a collection of matrices into a multidimensional array, and the zeros function is useful for preallocating a multidimensional array. The page-wise transpose is equivalent to permuting the first two dimensions of the array with permute(X,[2 1 3:ndims(X)]).
🌐
MathWorks
mathworks.com › simulink › simulink environment fundamentals › block libraries › matrix operations
Transpose - Compute transpose of matrix - Simulink
Transposed matrix, returned as an N-by-M matrix. Data Types: single | double | half | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | fixed point ... Run the command by entering it in the MATLAB Command Window.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 2181489-transpose-matrix-in-simulink-2020a
Transpose Matrix in Simulink 2020a - MATLAB Answers - MATLAB Central
November 25, 2025 - I need to transpose a matrix to [1x20] from [20x1] in Simulink 2020a. The transpose block was added in a later release so I cannot use that block. I am thinking of adding "Matlab Function Block" an...
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
pagectranspose - Page-wise complex conjugate transpose - MATLAB
You can also assemble a collection of 2-D matrices into a higher dimensional array, like a 4-D or 5-D array, and in these cases pagectranspose still treats the fundamental unit of the array as a 2-D matrix that the function operates on, such as X(:,:,i,j,k,l). The cat function is useful for assembling a collection of matrices into a multidimensional array, and the zeros function is useful for preallocating a multidimensional array. The page-wise complex conjugate transpose is equivalent to permuting the first two dimensions of the array with permute(conj(X),[2 1 3:ndims(X)]).
🌐
MathWorks
mathworks.com › symbolic math toolbox › symbolic computations in matlab › operators and elementary operations
ctranspose - Symbolic matrix complex conjugate transpose - MATLAB
The complex conjugate transpose operator, A', performs a transpose and negates the sign of the imaginary portion of the complex elements in A. ... For a matrix of complex numbers with nonzero imaginary parts, the complex conjugate transform is not equal to the nonconjugate transform.
Top answer
1 of 4
28

Interesting question!

I would definitely say it's good practice to use .' when you just want to transpose, even if the numbers are real and thus ' would have the same effect. The mains reasons for this are:

  1. Conceptual clarity: if you need to transpose, just transpose. Don't throw in an unnecessary conjugation. It's bad practice. You'll get used to writing ' to transpose and will fail to notice the difference. One day you will write ' when .' should be used. As probable illustrations of this, see this question or this one.

  2. Future-proofness. If one day in the future you apply your function to complex inputs the behaviour will suddenly change, and you will have a hard time finding the cause. Believe me, I know what I say1.

Of course, if you are using real inputs but a conjugation would make sense for complex inputs, do use '. For example, if you are defining a dot product for real vectors, it may be appropriate to use ', because should you want to use complex inputs in the future, the conjugate transpose would make more sense.

1 In my early Matlab days, it took me quite a while to trace back a certain problem in my code, which turned out to be caused by using ' when I should have used .'. What really got me upset is, it was my professor who had actually said that ' meant transpose! He forgot to mention the conjugate, and hence my error. Lessons I learned: ' is not .'; and professors can tell you things that are plain wrong :-)

2 of 4
12

My very biased view: Most cases I use ' are purely "formal", aka not related to mathematical calculations. Most likely I want to rotate a vector like the index sequence 1:10 by 90 degrees.

I seldomly use ' to matrices since it's ambiguous - the first question you've to answer is why you want to make a transpose?

If the matrix is originally defined in a wrong direction, I would rather define the matrix in the correct one it should be, but not turning it afterwards.

To transpose a matrix for a mathematical calculation, I explicitly use transpose and ctranspose. Because by doing so the code is easier to read (don't have to focus on those tiny dots) and to debug (don't have to care about missing dots). Do the following jobs such as dot product as usual.

🌐
GeeksforGeeks
geeksforgeeks.org › mathematics › transpose-of-a-matrix
Transpose of Matrix - Formula, Examples & How to Find the Transpose - GeeksforGeeks
... The transpose of matrix A is At of the order 3×2 having 3 rows and 2 columns. In the transpose matrix, elements of the first row of the given matrix are changed with the first column of the transpose matrix.
Published   December 11, 2025