Question

In: Computer Science

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]

Solutions

Expert Solution

% 3x + 2y - z = 10........... [1]
% -x + 3y + 2z = 5........... [2]
% x - y - z = -1 .................[3]

A = [3 2 -1; -1 3 2; 1 -1 -1];
b = [10; 5; -1];

res = A\b;

x = res(1)
y = res(2)
z = res(3)

======================================================

A = [1 2 -3 4; 2 2 -2 3; 0 1 1 0; 1 -1 1 -2];
b = [12; 10; -1; -4];

res = A\b;

s = res(1)
t = res(2)
u = res(3)
v = res(4)

======================================================

-------------------------------------------
Thanks, let me know if you need more information. PLEASE COMMENT if there is any concern.


Related Solutions

Solve the simultaneous equations: a) x + y = 7, 3x - 2y = 11 b) 7x - 2y = 1, 3x + 4y = 15?
Solve the simultaneous equations:a) x + y = 7,  3x - 2y = 11b) 7x - 2y = 1, 3x + 4y = 15
Solve the system of linear equations using the Gauss-Jordan elimination method. 2x + 2y + z...
Solve the system of linear equations using the Gauss-Jordan elimination method. 2x + 2y + z = 3 x + z = 2 4y − 3z = 13 solve for x,y,x
Question No.1: Solve the following system of two linear equations with two variables x and y...
Question No.1: Solve the following system of two linear equations with two variables x and y by “Equating the equations” method. ? = ?? − ?? ??? ? = −? + 5 Question No.2: Is this matrix ? = [ ? ? ? ? ] singular or non-singular? Question No. 3: Solve the following operations with the help of “PEMDAS”. ? ? − (?? ÷ ?) × ? ÷ ? − ? × ? + ?? ÷ ?3 Question No.4:...
1) Solve the system of linear equations, using the Gauss-Jordan elimination method. (If there is no...
1) Solve the system of linear equations, using the Gauss-Jordan elimination method. (If there is no solution, enter NO SOLUTION. If there are infinitely many solutions, express your answer in terms of the parameters t and/or s.) 3y + 2z = 1 2x − y − 3z = 4 2x + 2y − z = 5 (x, y, z) = 2) Solve the system of linear equations, using the Gauss-Jordan elimination method. (If there is no solution, enter NO SOLUTION....
Solve the following equations using the Newton-Raphason method. ( using matlab) x^2+x*y^2 = 9 ?3x^2 *...
Solve the following equations using the Newton-Raphason method. ( using matlab) x^2+x*y^2 = 9 ?3x^2 * y - y^3 = 4    ?initial estimation of (x,y) = (1.2, 2.5) ?please help.. using matlab and matlab code
Solve the following differential equation using Linear operators and the Annihilator approach as needed. y''+2y'+y=x^2-3x
Solve the following differential equation using Linear operators and the Annihilator approach as needed. y''+2y'+y=x^2-3x
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...
Write a MATLAB function function = pivGauss(.....) to solve linear equations using Gaussian Elimination with Partial...
Write a MATLAB function function = pivGauss(.....) to solve linear equations using Gaussian Elimination with Partial Pivoting. You'll need to employ Nested Loops. Thank you !
Use the simplex method to solve the linear programming problem. Maximize P = 3x + 2y...
Use the simplex method to solve the linear programming problem. Maximize P = 3x + 2y subject to 3x + 4y ≤ 33 x + y ≤ 9 2x + y ≤ 13 x ≥ 0, y ≥ 0   The maximum is P =  at (x, y)
Use the simplex method to solve the linear programming problem. Maximize P = 3x + 2y...
Use the simplex method to solve the linear programming problem. Maximize P = 3x + 2y subject to 3x + 4y ≤ 33 x + y ≤ 9 2x + y ≤ 13 x ≥ 0, y ≥ 0   The maximum is P =  at (x, y)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT