Question

solve for the linear combination of vector a &b to reach vector c on Mat lab....

solve for the linear combination of vector a &b to reach vector c on Mat lab.

vector a= [4 top -6 bottom], vector b=[2 top 6 bottom] and vector c= [14 top 6 bottom]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Output

4 -6 2 6 X = 2.0000 3.0000 2.000€

This means 2A+3B=C

A=[4;-6] and B=[2;6]

P=[A B] and Q=C

Script with comments

A=[4;-6] B=[2;6] C=[14;6] % we could solve the above system as system of linear equation PX=Q where % P=[AB] and Q=C, solutio

Code to copy

A=[4;-6]

B=[2;6]

C=[14;6]

% we could solve the above system as system of linear equation PX=Q where

% P=[A B] and Q=C, solution will be X=inverse(P)*Q

P=[A B]

Q=C

%pinv return inverse for an invertible matrix

X=pinv(P)*Q

Add a comment
Know the answer?
Add Answer to:
solve for the linear combination of vector a &b to reach vector c on Mat lab....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT