how do i multiply matrices in a sub-function using a for loop

Write a MATLAB function that performs matrix multiplication of two matrices sent in the input list. That is, write the nested FOR-END loops needed to perform multiplication. Don’t use the built in matrix operation (*). Your function should send a message if the two matrices entered violate the rules on matrix dimensions.

Réponses (1)

Star Strider
Star Strider le 7 Fév 2017
Wikipedia has a good explanation of Matrix multiplication.

1 commentaire

it is not a matter of the actual multiplication of matrices. it is more that i do not know how to write the for loop asking the sub function to multiply the matrices while making sure that inner matrix dimensions agree.

Connectez-vous pour commenter.

Catégories

Produits

Commenté :

le 7 Fév 2017

Community Treasure Hunt

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

Start Hunting!

Translated by