MATLAB: What does mean .* and ‘

operationvariable

Hi,
It seems that in MATLAB exists the notation .* that seems to be an operation and the notation ' that is used apparently with variables.
What is the meaning of these notations?

Best Answer

.* this mean element by element multiplication. https://www.mathworks.com/help/matlab/ref/times.html
Example:
A = [1 2 ; 3 4] ;
B = [5 6 ; 7 8] ;
C = A.*B
' this stands for transpose of a matrix. https://www.mathworks.com/help/matlab/ref/transpose.html
EXample:
A = [1 2 ; 3 4] ;
B = A'