How to do matrix multiplication?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!