is there such a matrix operator

Hi, everyone. IF Let X = [x1 x2 x3], Y = [y1 y2 y3], is there any operator to get x1y1+x2y2+x3y3?

 Respuesta aceptada

madhan ravi
madhan ravi el 18 de Mayo de 2019
sum(X .* Y)

2 comentarios

Or...
dot(X,Y)
or
X*Y.'
madhan ravi
madhan ravi el 18 de Mayo de 2019
Thank you John D‘Errico :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

el 18 de Mayo de 2019

Comentada:

el 18 de Mayo de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by