Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
KYAW KYAW
KYAW KYAW le 26 Juil 2011
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

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 26 Juil 2011
A=rand(116,750);
B=rand(116,750);
C=A.*B;
Result=sum(C(:));

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by