MATLAB Matrix Mutilpication? Write

조회 수: 7 (최근 30일)
Shalene
Shalene 2014년 11월 9일
답변: Image Analyst 2014년 11월 10일
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일
Hint:
for row = ....
for col = .....
thisSum = 0;
for v = .....
thisSum = ....
end
outputArray(row, col) = ...............
end
end

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by