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.

回答 (1 件)

Star Strider
Star Strider 2017 年 2 月 7 日

0 投票

Wikipedia has a good explanation of Matrix multiplication.

1 件のコメント

Eric Ekblom
Eric Ekblom 2017 年 2 月 7 日
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.

サインインしてコメントする。

カテゴリ

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

製品

質問済み:

2017 年 2 月 7 日

コメント済み:

2017 年 2 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by