フィルターのクリア

Dot Product of Rows in array

1 回表示 (過去 30 日間)
Ahmed Abdulla
Ahmed Abdulla 2022 年 6 月 21 日
回答済み: KSSV 2022 年 6 月 21 日
I have two arrays, A of size 1000x2 and B of size 1000x2. I would like to get dot product of the each set of rows so that the result is an array of size 1000x1 with the results. Without using a for loop

回答 (1 件)

KSSV
KSSV 2022 年 6 月 21 日
iwant = sum(A.*B,2) ;

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by