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

 채택된 답변

madhan ravi
madhan ravi 2019년 5월 18일

1 개 추천

sum(X .* Y)

댓글 수: 2

Or...
dot(X,Y)
or
X*Y.'
madhan ravi
madhan ravi 2019년 5월 18일
Thank you John D‘Errico :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품

태그

질문:

2019년 5월 18일

댓글:

2019년 5월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by