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?

 Accepted Answer

sum(X .* Y)

2 Comments

Thank you John D‘Errico :)

Sign in to comment.

More Answers (0)

Products

Tags

Asked:

on 18 May 2019

Commented:

on 18 May 2019

Community Treasure Hunt

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

Start Hunting!