Matrix multiplication element wise

조회 수: 9 (최근 30일)
Shambhu Prasad
Shambhu Prasad 2019년 3월 18일
댓글: Shambhu Prasad 2019년 3월 18일
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..

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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