'
Transpose operator.
Syntax
expr'
Operands
- expr
 - A valid scalar, vector, or matrix expression.
 
Example
| Expression | Result | 
|---|---|
1' | 
                                1 | 
                            
                                    {1, 2, 3}' 
                                 | 
                                
                                    { {1}, {2}, {3} }
                                 | 
                            
                                    { {1}, {2},{3} }'
                                 | 
                                
                                    {1, 2, 3}
                                 | 
                            
                                    { {1, 2}, {3, 4} }'
                                 | 
                                
                                    { {1, 3}, {2, 4} }
                                 | 
                            
Comments
If expr is a matrix, the elements of the matrix are interchanged such that the rows of the original matrix become the columns of the resultant matrix.
If expr_2 is a row vector, the result is a column vector with identical elements.
If expr_2 is a column vector, the result is a row vector with identical elements.
If expr_2 is a scalar, the result is expr_2.