How to do matrix multiplication?
1 view (last 30 days)
Show older comments
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??
0 Comments
Answers (1)
See Also
Categories
Find more on Matrix Indexing 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!