Effacer les filtres
Effacer les filtres

Dot Product of Rows in array

5 vues (au cours des 30 derniers jours)
Ahmed Abdulla
Ahmed Abdulla le 21 Juin 2022
Réponse apportée : KSSV le 21 Juin 2022
I have two arrays, A of size 1000x2 and B of size 1000x2. I would like to get dot product of the each set of rows so that the result is an array of size 1000x1 with the results. Without using a for loop

Réponses (1)

KSSV
KSSV le 21 Juin 2022
iwant = sum(A.*B,2) ;

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by