필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by