MATLAB Matrix Mutilpication? Write

6 visualizaciones (últimos 30 días)
Shalene
Shalene el 9 de Nov. de 2014
Respondida: Image Analyst el 10 de Nov. de 2014
Write your own code to perform matrix multiplication. Do not use any vectorizing -- use nested for loops. Recal that to mutiply tow matricies, the inner dimensions must be the same.
Equation 1
Every element in the resulting matrix C is obtained by:
Equation 2
So, three nested loops are required.

Respuestas (1)

Image Analyst
Image Analyst el 10 de Nov. de 2014
Hint:
for row = ....
for col = .....
thisSum = 0;
for v = .....
thisSum = ....
end
outputArray(row, col) = ...............
end
end

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by