How can i input this on MATLAB?

10 vues (au cours des 30 derniers jours)
Nate
Nate le 13 Juil 2022
Commenté : Rik le 14 Juil 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 commentaire
Rik
Rik le 14 Juil 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.

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 13 Juil 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

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by