Matrix multiplication element wise
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
madhan ravi
2019-3-18
A.*B.'
% ^-—-—-I can see in your code you swapped indices for B(j,i)
doc times
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!