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 件)

Image Analyst
Image Analyst 2014 年 11 月 10 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2014 年 11 月 9 日

回答済み:

2014 年 11 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by