How can i input this on MATLAB?

9 visualizzazioni (ultimi 30 giorni)
Nate
Nate il 13 Lug 2022
Commentato: Rik il 14 Lug 2022
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 Commento
Rik
Rik il 14 Lug 2022
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.

Accedi per commentare.

Risposte (1)

KSSV
KSSV il 13 Lug 2022
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

Community Treasure Hunt

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

Start Hunting!

Translated by