A non-standard array operation, is there an easier way?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I am trying to create a matrix by multiplication of two other but it is not a standard multiplication:
A=1x3 array
B=100x1 array
C = [A(1,1)*B, A(1,2)*B, A(1,3)*B];
Is there an easier way to create the C matrix? Thanks.
댓글 수: 1
답변 (2개)
Matt J
2013년 3월 26일
Looks like pretty standard matrix multiplication to me, given the dimensions you've provided,
C=B*A;
댓글 수: 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!