MATLAB: How can i multiply each value from a row to each value of another row.

matrix

Example: A = [1 2 3]
B = [ 4 5 6]
Answer:[ 4 10 18]

Best Answer

A = [1 2 3]
B = [4 5 6]
Answer = A.*B
Result
>> Answer
Answer =
4 10 18