Use MATLAB to solve the problem.
-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 %.
Use MATLAB to solve the problem.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am