Page 1 of 1

Use MATLAB to solve the problem.

Posted: Tue Sep 07, 2021 7:44 am
by answerhappygod
Use MATLAB to solve the problem.
Use Matlab To Solve The Problem 1
Use Matlab To Solve The Problem 1 (122.53 KiB) Viewed 271 times
-3 First Script i) Use Gaussian Elimination Algorithm (6.1) to find the inverse of matrix B = A-1, 2 -3 1 where A = 1 1 -1 by using augmented matrix 1 -3 2 1 1 0 0 1 1 -1 0 1 0 1 -3 0 0 1 2 ii) Use matrix B to find the solution of system Ax = b, where b = -1 0 iii) Print out A, B = A-1 and Test = A* B (which should be a 3 * 3 identity matrix) and vector x (solution of the system). Second Script Do the same items (from (i)-(iii) ) as in the First Script by using the augmented matrices (A : bi), where bi is either b1 = 0 0 b2 = | 1 or b3 = Cor 0 Can you see which method (in the first or in the second script) is faster and why? Write down your observation in the end of your Second Script file leading with %.