i want to multiply 2 matrix for example 1st element in F multiply with 1st element in in D, then plus with 1st element in F multiply with 2nd element in D

F= [0 2 2 ; 2 0 2 ; 2 2 0 ]; D= [0 4 4 ; 4 0 4 ; 4 4 0 ]; z= (0x0) + (0x4) + (0x4) + (2x0) + (2x4) +...

this is what i have try

z= F.*D

but i got the wrong answer

Similar questions and discussions