Docsity

Gaussian Elimination: Solving Linear Systems in MATLAB - Prof. Yongcheng Zhou, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Computer Problems: Gaussian Elimination
Due Sep 12, 2008
1. Write a MATLAB program to solve the linear systems Ax =Busing Gaussian
elimination method.
a. Following the pseudo-code of Gaussian elimination given in the class to write a MAT-
LAB program to find the upper triangular matrices for the given linear systems
b. Write the formula for the backward substitution for solving the above upper triangular
linear systems. Program this formula with MATLAB and solve the linear systems.
Write the solutions into data files.
c. Solve the same linear systems using MATLAB’s inverse function inv(), and use these
solutions to check your Gaussian elimination solutions.
Matrix Aand vector Bcan be downloaded in the course page.
Send all the MATLAB files and solutions to the instructor in a single ZIP pack.
1

Partial preview of the text

Download Gaussian Elimination: Solving Linear Systems in MATLAB - Prof. Yongcheng Zhou and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Computer Problems: Gaussian Elimination

Due Sep 12, 2008

  1. Write a MATLAB program to solve the linear systems Ax = B using Gaussian elimination method.

a. Following the pseudo-code of Gaussian elimination given in the class to write a MAT- LAB program to find the upper triangular matrices for the given linear systems

b. Write the formula for the backward substitution for solving the above upper triangular linear systems. Program this formula with MATLAB and solve the linear systems. Write the solutions into data files.

c. Solve the same linear systems using MATLAB’s inverse function inv(), and use these solutions to check your Gaussian elimination solutions.

Matrix A and vector B can be downloaded in the course page. Send all the MATLAB files and solutions to the instructor in a single ZIP pack.