several questions for a beginner

1 回表示 (過去 30 日間)
Eliraz Nahum
Eliraz Nahum 2018 年 9 月 21 日
コメント済み: Image Analyst 2018 年 9 月 22 日
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

採用された回答

Stephen23
Stephen23 2018 年 9 月 21 日
編集済み: Stephen23 2018 年 9 月 21 日
The difference is explained here:
Short summary:
  • matrix operations ( without the dot) use rules of linear algebra, or solve systems of equations.
  • array operations ( with the dot) perform element-wise operations.
Read the link above and the help for each specific operator to know what it does. More detailed explanations:
  1 件のコメント
Image Analyst
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 ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by