Question: This is a homework for MATLAB. Please answer using MATLAB functions and parameters. The answers are to be submitted as a .m script. Don't just
This is a homework for MATLAB. Please answer using MATLAB functions and parameters. The answers are to be submitted as a .m script. Don't just list final answers.

Problem 6: Explore different ways to solve a linear system of equations by typing help iny and help | in command window, and then solve the following system: 2x1 + x2 + x3 + x4 + X5 = X1 + 2x2 + x3 + x4 + X5 = x1 + x2 + 2x3 + x4 + 25 = X1 + x2 + x3 + 2x4 + X5 = 4 X + x2 + x3 + x4 + 2x5 = 5 a) Using \ operator, solve the system of equations in the form Ax=b to obtain x. Set p6a=x.. b) Using function inv, solve the system of equations Ax=b for x. Set p6b=x. c) Is the answer in part (a) and part (b) the same? Put the answer in p6c. Hint: Check by setting them equal. d) Compute the absolute difference between part (a) and (b) and put the answer in pod
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
