MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB
MATLAB
Do not use MATLAB default functions Do not use MATLAB
default functions Do not use MATLAB default functions
The most basic and rudimentary method to find the root x of the linear equation Ar = b given as follows is Forward Elimination and Backward Substitution using Naive Gauss Elimination, and the corresponding pseudocode is as follows. (a) DOFOR k = 1, n-1 DOFOR 1 = k + 1, n factor = dink I akik DOFOR j = k + 1 ton di.j = 01.3 - factor · Qxj END DO bi = b; - factor · bk END DO END DO Xn = bn / orin DOFOR 1 = n-1, 1, -1 sum = b; DOFOR j = i + 1. n sum = sum 01.jXj END DO X; = sum / aj, END DO (6) - Write a function m-file that implements the above pseudocode. (do not use MATLAB default functions!) Set A and b as input variables, and root vector x as output, - Applied to a simple example problem, presenting the script m file of the process, - Check the calculation result using Matlab's function. (For example, you can use a function to find the inverse of a matrix in Matlab)
The most basic and rudimentary method to find the root x of the linear equation Ar = b given as follows is Forward Elimi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The most basic and rudimentary method to find the root x of the linear equation Ar = b given as follows is Forward Elimi
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!