How to do matrix multiplication?

1 view (last 30 days)
UKJIN KIM
UKJIN KIM on 21 Jul 2019
Answered: madhan ravi on 21 Jul 2019
Hi
I have been studying Matlab for 3 days and ask questions because my problem is not resolved.
I try to multiply the matrices (2X2 3X3...) but A * B or the inverse matrix calculation method should not be used.
(MY THINKING)
A = [1 2 3; 4 5 6; 7 8 9;]
B = [1 2 3; 4 5 6; 7 8 9;]
[m, l] = size(A)
[n, k] = size(B)
C = zeros(m, k)
for q = 1 : l
w = 1 : n
C = (A(:, q) .* B(w, :)
end
What should I do??

Answers (1)

madhan ravi
madhan ravi on 21 Jul 2019

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!