How can i multiply each value from a row to each value of another row.
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mohammad Ali
il 31 Ott 2020
Commentato: Ameer Hamza
il 31 Ott 2020
Example: A = [1 2 3]
B = [ 4 5 6]
Answer:[ 4 10 18]
0 Commenti
Risposta accettata
Ameer Hamza
il 31 Ott 2020
Modificato: Ameer Hamza
il 31 Ott 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!