how to do element wise multiplication of 2 columns in array?

1 回表示 (過去 30 日間)
Suresh R
Suresh R 2021 年 11 月 18 日
回答済み: Matt J 2021 年 11 月 18 日
how to do element wise multiplication of 2 columns in array?

採用された回答

Matt J
Matt J 2021 年 11 月 18 日
For example,
A=randi(10,5,2)
A = 5×2
1 10 4 8 6 7 4 5 7 5
A(:,1).*A(:,2)
ans = 5×1
10 32 42 20 35

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by