How can i input this on MATLAB?

How can i input this on MATLAB?
Express v = (3, 7, -4) in R3 as a linear combination of the vectors
u1=(1, 2, 3); u2 =(2, 3, 7); u3 =(3, 5, 6)
We seek scalars x, y, z such that v = xu1 + yu2 + zu3

1 Comment

I recovered the removed content from the Google cache (something which anyone can do). Editing away your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.
This page is now archived on the Wayback Machine.

Sign in to comment.

Answers (1)

b = [3, 7, -4]' ;
u1=[1, 2, 3];
u2 =[2, 3, 7];
u3 =[3, 5, 6] ;
A = [u1' u2' u3'] ;
x = A\b ;
% check
[A*x b]
ans = 3×2
3.0000 3.0000 7.0000 7.0000 -4.0000 -4.0000

Categories

Asked:

on 13 Jul 2022

Commented:

Rik
on 14 Jul 2022

Community Treasure Hunt

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

Start Hunting!