How can i multiply each value from a row to each value of another row.
3 次查看(过去 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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!