# two 3*3 matrix multiplication using for loop in matlab.

14 views (last 30 days)
maede mandi on 23 Sep 2021
Commented: Stephen on 27 Sep 2021 at 3:35
hi ; i need the multiplication of two 3*3 matrix ([3,3]*[3,3]) using for loops. thanks.actually i am going to do matlab matrix multiplication code.We will take two matrices as an input from the user and perform matrices multiplication in matlab.This can be used for array multiplication in matlab.
Stephen on 27 Sep 2021 at 3:35

Sulaymon Eshkabilov on 23 Sep 2021
Maybe you want to perform elementwise mutliplication of two matrices, if so, :
A.*B
FOR or WHILE loop are not advised to use for matrix multiplication.
for ii = 1:3
for jj = 1:3
AB(ii,jj)= A(ii,jj)*B(ii,jj);
end
end
Image Analyst on 26 Sep 2021 at 20:43
Can she turn in your solution for her homework as if it were her own?

Jan on 23 Sep 2021
Edited: Jan on 26 Sep 2021 at 20:30
##### 2 CommentsShowHide 1 older comment
Jan on 26 Sep 2021 at 20:31
You find code with loops for matrix and elementwise multiplications already. So what exactly is not clear yet?