How can i multiply each value from a row to each value of another row.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Ali
am 31 Okt. 2020
Kommentiert: Ameer Hamza
am 31 Okt. 2020
Example: A = [1 2 3]
B = [ 4 5 6]
Answer:[ 4 10 18]
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 31 Okt. 2020
Bearbeitet: Ameer Hamza
am 31 Okt. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!