What does mean .* and ' ?
이전 댓글 표시
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?
채택된 답변
추가 답변 (2개)
Sara Boznik
2020년 8월 16일
2 개 추천
.* means matrix product, if you don't write . will Matlab product the numbers on the same position.
' you use it usually when you want to have something displayed in Command Window.
Good luck.
댓글 수: 1
".* means matrix product, if you don't write . will Matlab product the numbers on the same position."
This is incorrect. In fact:
- * is matrix multiplication,
- .* is array multiplication (i.e. element-wise).
The difference is explained here:
"' you use it usually when you want to have something displayed in Command Window."
.* 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'
댓글 수: 1
Stephen23
2020년 8월 16일
"' this stands for transpose of a matrix. https://www.mathworks.com/help/matlab/ref/transpose.html "
This is incorrect. In fact
- ' is shorthand for complex conjugate transpose.
- .' is shorthand for transpose.
Sadly beginners often confuse the two, although they are not the same operation.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!