multiply col vector with matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
I have matrix and one column vector. I want to multiply column vector with each of column in matrix.
Let say matrix is M and column is N, I want to multiply N with each column of M.
댓글 수: 0
채택된 답변
Junaid
2012년 4월 5일
You can do it like this.
bsxfun(@times,M,N)
If N is column vector then each colmn in M is multiplied by N, else if N is row vector then each row in M is multiplied by N.
댓글 수: 0
추가 답변 (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!