- 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!