Question

In: Computer Science

Only MATLAB solution is required. No handwritten solution requested. Given the system of equations − 1.1x1...

Only MATLAB solution is required. No handwritten solution requested.

Given the system of equations

− 1.1x1 + 10x2 = 120

− 2x1 + 17.4x2 = 174

(a) Solve graphically and check your results by substituting them back into the equations. ( 15 pts. )

(b) On the basis of the graphical solution, what do you expect regarding the condition of the system? ( 5 pts. )

(c) Compute the determinant ( 5 pts. ).

Solutions

Expert Solution

clc;clear all
f1=@(x) (120+1.1*x)/10; %Equation 1
f2=@(x) (174+2*x)/17.4; %Equation 2
fplot(f1);hold on;fplot(f2); %Plots both
A=[-1.1 10;-2 17.4]; %Matrix of coefficients
solution=inv(A)*[120;174] %Finds the solution
determinant=det(A) %Computes determinants
conditionno=cond(A) %Finds condition number
%The system is ill conditioned as the condition number is high


Related Solutions

(MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) Please complete the following...
(MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) (MATLAB ONLY) Please complete the following Question in MATLAB ASAP, Thanks. :) 2a. Write a function that outputs the amount of freezing point depression (in degrees C) given a mass of magnesium chloride salt and a volume of water. Formula to calculate freezing point depression: ΔT = iKm in which ΔT is the change in temperature in °C, i is the van't Hoff factor, which = 3 for MgCl2 because...
Solve for x,y,z if there if a solution to the given system of linear equations: x...
Solve for x,y,z if there if a solution to the given system of linear equations: x - 3y - 2z = -3 3x + 2y - z = 12 -x - y + 4z = 3
Use matlab backslash operator to output the solution of system of equation.
Use matlab backslash operator to output the solution of system of equation.Print the unknowns in console.
Solve the following system. If the​ system's equations are dependent or if there is no​ solution,...
Solve the following system. If the​ system's equations are dependent or if there is no​ solution, state this. 3x - 4y -z = 9 2x + 2y + z = 0 5x - 2y + 2z = -1 The solution is.... PLEASE MAKE SURE THIS IS CORRECT. I KEEP PAYING FOR THE WRONG ANSWER!
Solve the following system. If the system's equations are dependent or if there is no solution,...
Solve the following system. If the system's equations are dependent or if there is no solution, state this. 3x - 4y - z = 18 4x + 2y + z = 16 7x - 2y + 3z = 19
Solve the given system of differential equations. ??/?? = ? + 4? ??/?? = ? +...
Solve the given system of differential equations. ??/?? = ? + 4? ??/?? = ? + y
Use MATLAB to solve graphically the planar system of linear equations x +4 y = −4...
Use MATLAB to solve graphically the planar system of linear equations x +4 y = −4 4x +3 y =4 to an accuracy of two decimal points. Hint: The MATLAB command zoom on allows us to view the plot in a window whose axes are one-half those of original. Each time you click with the mouse on a point, the axes’ limits are halved and centered at the designated point. Coupling zoom on with grid on allows you to determine...
Question 1 Using MATLAB solve the following system of linear simultaneous equations 3x + 2y -...
Question 1 Using MATLAB solve the following system of linear simultaneous equations 3x + 2y - z = 10........... [1] -x + 3y + 2z = 5........... [2] x - y - z = -1 .................[3] s + 2t - 3u + 4v = 12........... [1] 2s + 2t - 2u + 3v = 10......... [2] t + u = -1............................ [3] s - t + u - 2v = -4................ [4]
Using Matlab's FUNCTION FILE Solve this system of equations using Gauss Elimination in MATLAB by writing...
Using Matlab's FUNCTION FILE Solve this system of equations using Gauss Elimination in MATLAB by writing a Function file. 10y + z = 2 x + 3y – z = 6 2x + 4y + z = 5 Could you also provide me with a copiable function file of Matlab and the associated screenshot. Thank you!
Use Cramer's Rule to find the solution of the system of linear equations, if a unique...
Use Cramer's Rule to find the solution of the system of linear equations, if a unique solution exists. –5x + 2y – 2z = 26 3x + 5y + z = –22 –3x – 5y – 2z = 21
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT