MATLAB Matrix Mutilpication? Write

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.

回答(1 个)

Hint:
for row = ....
for col = .....
thisSum = 0;
for v = .....
thisSum = ....
end
outputArray(row, col) = ...............
end
end

类别

帮助中心File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

提问:

2014-11-9

Community Treasure Hunt

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

Start Hunting!

Translated by