Multiply then sum elements of two matrices (Sum of two Matrix Products)

1 回表示 (過去 30 日間)
KYAW KYAW
KYAW KYAW 2011 年 7 月 26 日
Dear All,
I am confusing using sum function in matlab.
I would like to get sum(A=[116x750]* B= 116x750]) for invidual elements.
I hope someone will advise me since I was stuck here so long.
Thanks and best regards

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2011 年 7 月 26 日
A=rand(116,750);
B=rand(116,750);
C=A.*B;
Result=sum(C(:));

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by