MATLAB: Is there such a matrix operator

MATLABoperator

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

Best Answer

  • sum(X .* Y)