Filter löschen
Filter löschen

Matrix multiplication element wise

1 Ansicht (letzte 30 Tage)
Shambhu Prasad
Shambhu Prasad am 18 Mär. 2019
Kommentiert: Shambhu Prasad am 18 Mär. 2019
I have two matrices A and B of the order 49*49 each. I want to generate third matrix C whose elements are product of individual elements of A and B (not matrix multiplication)
Like C(i,j) = A(i,j)*B(j,i). What could be the matlab command for this.
Thanks in advance..

Akzeptierte Antwort

madhan ravi
madhan ravi am 18 Mär. 2019
A.*B.'
% ^-—-—-I can see in your code you swapped indices for B(j,i)
doc times
  3 Kommentare
madhan ravi
madhan ravi am 18 Mär. 2019
illustrate with an example if it doesn't do what you want
Shambhu Prasad
Shambhu Prasad am 18 Mär. 2019
Ok Sir.. Got it.
Thanks a lot..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by