Write a MATLAB function mygaussseidel that reads matrices A
• Write a MATLAB function mygaussseidel, that reads matrices A and C and return the unknowns in B using the general form of Gauss- Seidel provided below
Below is the image of the Gauss-Seidel problem.
https://www.dropbox.com/s/qm27emrqhwtmgii/Gauss-Seidel.png?dl=0
Can you please help me write script step by step in Matlab? Thank You.
Solution
The famous Gauss Siedel algorithm is used to find the vector b, that satisfies the condition Ax = b, where A is square matrix of order nxn and x be a matrix vector of nX1 and the resulting vector b will be an nX1 vector.
Simply set up the matrix as shown below for your problem
Initial guess of x let us start with some random numbers

