What is the difference between .' and ' when transposing a matrix?
Show older comments
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. Is there a difference between these two?
Accepted Answer
More Answers (2)
Geoff Hayes
on 4 May 2018
.' performs a matrix transpose
' performs a complex conjugate transpose
And so you would only notice a difference if your a is complex (or an array of complex elements).
doc punct % Concise description of all Matlab punctuation-symbols syntax
doc transpose
doc ctranspose
for the two specific operators. (It's certainly a pit(proverbial)a(ppendage) for newcomers that neither of
help .'
doc .'
return the information requested. One would think TMW would have fixed that in 40 yr or so... :(
In general I suggest starting with the "Getting Started" tutorial lessons at
doc
and work your way through the early portions--it'll make the entry much faster if you do than if not...
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!