How to put 2 vectors when the inner product is available
1 view (last 30 days)
Show older comments
(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
Accepted Answer
More Answers (2)
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);
See Also
Categories
Find more on Installation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!