transpose of a complex array

8 Ansichten (letzte 30 Tage)
Robert
Robert am 1 Jun. 2016
Bearbeitet: dpb am 1 Jun. 2016
MatLab switches the signs of the complex portion of matrix elements when taking the transpose
A =
0.8147 + 0.9026i 0.9134 + 0.9557i 0.2785 + 0.5277i
0.9058 + 0.9517i 0.6324 + 0.7952i 0.5469 + 0.7395i
0.1270 + 0.3564i 0.0975 + 0.3123i 0.9575 + 0.9785i
>> A'
ans =
0.8147 - 0.9026i 0.9058 - 0.9517i 0.1270 - 0.3564i
0.9134 - 0.9557i 0.6324 - 0.7952i 0.0975 - 0.3123i
0.2785 - 0.5277i 0.5469 - 0.7395i 0.9575 - 0.9785i
Why? "R" does not. I could find nothing online or in my math references telling me which is correct.

Antworten (1)

dpb
dpb am 1 Jun. 2016
Bearbeitet: dpb am 1 Jun. 2016
See
doc transpose
I've always thought it peculiar too, that TMW chose the "dot" version for the array transpose and the "plain" one for complex but that's the way it is...
I think it's a good habit to generally use .' unless you know it is complex transpose that one is after but unfortunately the doc's are pretty slapdash about it using plain ' pretty much everywhere in the intro stuff.
ADDENDUM
"I could find nothing online or in my math references telling me which is correct."
Forgot to comment on the above...the answer is that both are correct for what they are. Which is the correct operation to incorporate is dependent upon the context and only the context will answer that. That "it depends" is why you didn't find an answer is because all they can tell you, too, is to "use the appropriate one for the situation".
Matlab and R and SAS and all are simply programming languages/analysis systems with their own particular syntax and conventions. There is no "right" or "wrong" in that context, only that each does it in its own way. That there might be more consistency between could be nice when moving from one system to another, but that's a different issue entirely.

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by