How to do matrix multiplication?

조회 수: 2 (최근 30일)
UKJIN KIM
UKJIN KIM 2019년 7월 21일
답변: madhan ravi 2019년 7월 21일
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??

답변 (1개)

madhan ravi
madhan ravi 2019년 7월 21일

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by