MATLAB Matrix Mutilpication? Write
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponses (1)
Image Analyst
le 10 Nov 2014
Hint:
for row = ....
for col = .....
thisSum = 0;
for v = .....
thisSum = ....
end
outputArray(row, col) = ...............
end
end
Check out the size() function. And this: http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers
0 commentaires
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!