Multiply then sum elements of two matrices (Sum of two Matrix Products)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Fangjun Jiang
el 26 de Jul. de 2011
A=rand(116,750);
B=rand(116,750);
C=A.*B;
Result=sum(C(:));
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!