Matrix multiplication element wise
조회 수: 9 (최근 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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!