How to put 2 vectors when the inner product is available

1 view (last 30 days)
(x,y) = 2x1y1-3x1y2-3x2y1+5x2y2-x2y3-x3y2+4x3y3
with u =(1; 1;2), v=(2;1;-1)
for me, i know that making a doc product with doc(u,v), however this problem have inner product availably.
  3 Comments
Cuong Ho Chí
Cuong Ho Chí on 8 Dec 2018
i mean how to calculate an product of u and v when it doesn't have standard product

Sign in to comment.

Accepted Answer

Cuong Ho Chí
Cuong Ho Chí on 8 Dec 2018
i mean how to calculate product of u,v when it doesn't have an standard product

More Answers (2)

James Tursa
James Tursa on 8 Dec 2018
I'm not at all sure what you mean. Maybe this is what you want:
result = 2*u(1)*v(1) - 3*u(1)*v(2) - 3*u(2)*v(1) + 5*u(2)*v(2) - u(2)*v(3) - u(3)*v(2) + 4*u(3)*v(3);

Cuong Ho Chí
Cuong Ho Chí on 8 Dec 2018
thank you so much

Community Treasure Hunt

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

Start Hunting!