Matrix multiplication element wise
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Shambhu Prasad
il 18 Mar 2019
Commentato: Shambhu Prasad
il 18 Mar 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..
0 Commenti
Risposta accettata
madhan ravi
il 18 Mar 2019
A.*B.'
% ^-—-—-I can see in your code you swapped indices for B(j,i)
doc times
3 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!