- matrix operations ( without the dot) use rules of linear algebra, or solve systems of equations.
- array operations ( with the dot) perform element-wise operations.
several questions for a beginner
조회 수: 2 (최근 30일)
이전 댓글 표시
hello, I am trying to figure out when I have to use the "." sign before mathematical operations. I read that by writing, for example, v1.*v2, I mean that the multiplying is between the vectors components. On the other hand there were some cases in which it was written v1(3)*v2(3) without the "." So I try to understand when I should use it. thanks
댓글 수: 0
채택된 답변
Stephen23
2018년 9월 21일
편집: Stephen23
2018년 9월 21일
The difference is explained here:
Short summary:
Read the link above and the help for each specific operator to know what it does. More detailed explanations:
댓글 수: 1
Image Analyst
2018년 9월 22일
Eliraz's "Answer" moved here since it's a comment to Stephen rather than an "Answer" by Elirah to his original question.
thanks a lot!
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!