How can i multiply each value from a row to each value of another row.
조회 수: 4 (최근 30일)
이전 댓글 표시
Example: A = [1 2 3]
B = [ 4 5 6]
Answer:[ 4 10 18]
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 10월 31일
편집: Ameer Hamza
2020년 10월 31일
Read about element-wise operator in MATLAB: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html
A = [1 2 3]
B = [4 5 6]
Answer = A.*B
Result
>> Answer
Answer =
4 10 18
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!