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

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 Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

질문:

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