Using MATLAB 1. Solve the following system of linear equations -4x +3y+z-18 5x +
ID: 3753863 • Letter: U
Question
Using MATLAB
1. Solve the following system of linear equations -4x +3y+z-18 5x + 12y-2z30 Q2. Given the following matrix: A-1-3 10-2 3 -9 1 Define A in MATLAB and perform the following operations. Show the result and explain it. a. A A d. det(A) e. inv(A) Q3. Define A, B, and C in MATLAB and perform the operations: 0 -2 1 1 -3 !5 -2 0 6 a. Calculate A+B and B+A to show that addition of matrices is commutative. b. Calculate A+(B+C) and (A+B)+C to show that addition of matrices is associative. c. Calculate 3(A+C) and 3A3C to show that, when matrices are multiplied by a scalar, the multiplication is distributive. d. Calculate A (B+C) and A B+A C to show that matrix multiplication is distributive e. Calculate A B and B*A. Are they the same? Why? x2-5x-12 04. Plot the function f(x) in the domain-1Sx s7 Q5. Given v [4,-1,2,7,1,-2,2,0] and u - [5,-1,0,3,-3,18,1,-5]. Evaluate the following expressions b, u== abs(v)Explanation / Answer
Q1
syms x y z
eqn1 = -4*x + 3y + z == 18;
eqn2 = 5x + 12y - 2z == 30;
eqn3 = 2x - 5*y + 6*z == 9;
sol = solve([eqn1, eqn2, eqn3], [x, y, z]);
xSol = sol.x
ySol = sol.y
zSol = sol.z
x = -88/133, y = 473/133, z = 89/19
Q2.a
A = [2 5 6; -3 10 -2; 3 -9 1];
C=A*A
C = 31
Q2.b
A = [2 5 6; -3 10 -2; 3 -9 1];
C=A.*A
C = [4 25 36; 9 100 4; 9 81 1]
Q2.c
A = [2 5 6; -3 10 -2; 3 -9 1];
C=A./A
C = [1 1 1; 1 1 1; 1 1 1]
Q2.d
A = [2 5 6; -3 10 -2; 3 -9 1];
d= det(A)
d = -49
Q2. e
A = [2 5 6; -3 10 -2; 3 -9 1];
I = inv(A)
ans
8/49 59/49 10/7
3/49 16/49 2/7
3/49 -33/49 -5/7
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.