Menu

(Solved) : Homework Matlab Please Answer Using Matlab Functions Parameters Answers Submitted M Script Q43997324 . . .

This is a homework for MATLAB. Please answer using MATLABfunctions and parameters. The answers are to be submitted as a .mscript. 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

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: 2×1 + x2 + x3 + x4 + X5 = X1 + 2×2 + x3 + x4 + X5 = x1 + x2 + 2×3 + x4 + 25 = X1 + x2 + x3 + 2×4 + X5 = 4 Xı + x2 + x3 + x4 + 2×5 = 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. Show transcribed image text 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: 2×1 + x2 + x3 + x4 + X5 = X1 + 2×2 + x3 + x4 + X5 = x1 + x2 + 2×3 + x4 + 25 = X1 + x2 + x3 + 2×4 + X5 = 4 Xı + x2 + x3 + x4 + 2×5 = 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.

Expert Answer


Answer to This is a homework for MATLAB. Please answer using MATLAB functions and parameters. The answers are to be submitted as a…

OR