When transposing vectors/matrices in MATLAB, I\'ve seen and used just the \'
(apostropohe) operator for a long time.
For example:
>&g
There are two cases to distinguish here:
In the latter case, the situation has to dictate which is correct, and probably only one of the two choice is correct in that situation. Most often that will be to take the conjugate transpose, which corresponds to '
, but there are cases where you must take the straight transpose and then, of course, you need to use .'
.
In the former case, I suggest not using either transpose operator. Instead you should either use reshape
or just insist that the input be make correctly and throw an error if it is not. This clearly distinguishes these "computer science" instance from true mathematical instances.