Matrix multiplication element wise

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..

 采纳的回答

A.*B.'
% ^-—-—-I can see in your code you swapped indices for B(j,i)
doc times

3 个评论

yes in the product matrix, the elements need to be swapped..
the code you have given is mulitiplying directly elements..
thanks for the help..
illustrate with an example if it doesn't do what you want
Ok Sir.. Got it.
Thanks a lot..

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by