is there such a matrix operator

1 visualizzazione (ultimi 30 giorni)
zilai si
zilai si il 18 Mag 2019
Commentato: madhan ravi il 18 Mag 2019
Hi, everyone. IF Let X = [x1 x2 x3], Y = [y1 y2 y3], is there any operator to get x1y1+x2y2+x3y3?

Risposta accettata

madhan ravi
madhan ravi il 18 Mag 2019
sum(X .* Y)
  2 Commenti
John D'Errico
John D'Errico il 18 Mag 2019
Or...
dot(X,Y)
or
X*Y.'
madhan ravi
madhan ravi il 18 Mag 2019
Thank you John D‘Errico :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Elementary Math in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by