Hi, everyone. IF Let X = [x1 x2 x3], Y = [y1 y2 y3], is there any operator to get x1y1+x2y2+x3y3?

 採用された回答

madhan ravi
madhan ravi 2019 年 5 月 18 日

1 投票

sum(X .* Y)

2 件のコメント

John D'Errico
John D'Errico 2019 年 5 月 18 日
Or...
dot(X,Y)
or
X*Y.'
madhan ravi
madhan ravi 2019 年 5 月 18 日
Thank you John D‘Errico :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

タグ

質問済み:

2019 年 5 月 18 日

コメント済み:

2019 年 5 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by