How to do matrix multiplication?

1 visualizzazione (ultimi 30 giorni)
UKJIN KIM
UKJIN KIM il 21 Lug 2019
Risposto: madhan ravi il 21 Lug 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??

Risposte (1)

madhan ravi
madhan ravi il 21 Lug 2019

Community Treasure Hunt

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

Start Hunting!

Translated by