Question
Matlab
Question 3 (10 points) Provide the MATLAB commands needed to determine the solution to the following system of equations in a MATLAB program (linearequation.m). Use MATLAB to check the solution by multiplying coefficient matrix A with the solution vector x, to produce b. That is, Ai-b. w+3x +4y -31 2w + x + 3y + z = 27 9x + 7y +2z = 72 4w + 3x + 2y + 2z = 27.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOURCE CODE:

syms w;
syms x;
syms y;
syms z;
eqn1 = w+3*x+4*y==31;
eqn2 = 2*w+x+3*y+z==27;
eqn3 = 9*x+7*y+2*z==72;
eqn4=4*w+3*x+2*y+2*z==27;
[A,B] = equationsToMatrix([eqn1, eqn2, eqn3,eqn4], [w,x, y, z])
X = linsolve(A,B)

A*X

SCREENSHOTS:
syms W syms x syms y syms z [A,BI -equation sToMatrix ([eqnl, Xlinsolve(A,B) egn2, eqn3 , egn4], [w,x, y, z]) A*X0122 3193 1727 3272 120464-93 103-93豊 009 93 ess 93 ses-93- g 63 1727 3272 2

Add a comment
Know the answer?
Add Answer to:
Matlab Provide the MATLAB commands needed to determine the solution to the following system of equations...
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