Trying to understand MATLAB syntax: I see that
(0:3)
is a row vector, that the '
(forward-quote) operator is transpose
, so
(0:3)'
is a column vector. I have also seen .'
in some files, and these also produce column vectors, so
(0:3).'
produces the same result as (0:3)
.
What is the difference between '
and .'
? I haven't found anything in the MATLAB docs to help me understand this.
(note that this question is about syntax, primarily, not about the difference between transpose
and ctranspose
, because if you don't know that '
is one and .'
is the other, than an answer to the question of transpose
versus ctranspose
is of no help answering the question of .
versus '.
. In many MATLAB examples and tutorials, '
is glibly and inaccurately presented as transpose
, and that fact leads to the question when a user first encounters .'
.)