0% found this document useful (0 votes)
41 views4 pages

Second Term, AY 2018-2019

This document provides instructions for an electronics engineering laboratory experiment on solving systems of linear equations using iterative techniques like the Jacobi and Gauss-Seidel methods. Students are asked to write MATLAB code to solve sample systems of linear equations, implement the iterative methods as functions, and solve additional challenge problems involving circuit analysis applications of the techniques. The challenges involve iteratively solving systems, tracking the iterative process, and plotting the results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views4 pages

Second Term, AY 2018-2019

This document provides instructions for an electronics engineering laboratory experiment on solving systems of linear equations using iterative techniques like the Jacobi and Gauss-Seidel methods. Students are asked to write MATLAB code to solve sample systems of linear equations, implement the iterative methods as functions, and solve additional challenge problems involving circuit analysis applications of the techniques. The challenges involve iteratively solving systems, tracking the iterative process, and plotting the results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

UNIVERSITY OF SANTO TOMAS

Faculty of Engineering
Electronics Engineering Department
Second Term, AY 2018-2019

Name: ____________________________________ Score: ______________


Section: 4ECE-___ Date: ______________

Experiment 3: System of Linear Equations: Iterative Techniques


ECE-M421L: Numerical Methods for ECE Laboratory
INSTRUCTIONS: Write a MATLAB script/code to do the following problems. You may use the
help function to see the full documentation of the commands.

PROBLEM 1: For the system of equations shown below, estimate the solution by using the two
methods discussed. Evaluate the convergence speed of both methods by using the error
tolerance є = 0.0001.

5X1 – X2 + X3 = 10

2X1 + 8X2 – X3 = 11

-X1 + X2 + 4X3 = 3

How many iterations are needed to reach the value of epsilon?

Jacobi Iterative Method = _____________________

Gauss-Seidel Iteration Method = ______________

MATLAB Code:
Experiment 3
ECE-M421L: Numerical Methods for ECE Laboratory
PROBLEM 2: Create a function file for both methods, for the function name and arguments use
[x,k] = jacobi(A, b, epsilon) and [x,k] = gauss_seidel(A, b, epsilon). Where x is the solution, k is
the number of iterations, A is the matrix coefficient, b is the vector Right Hand Side coefficients
and epsilon is the error tolerance.

MATLAB Code:
Experiment 3
ECE-M421L: Numerical Methods for ECE Laboratory
CHALLENGE PROBLEMS:
1. Solve for the value of the systems of linear equation given below; use 8 iterations for
both Jacobi and Gauss – Seidel Method.
4+2 x+1.5 z
y=
7
x= y +7
3 x=2 y−9 z +5

Table 1: Formula Based on Equations Given.


Formula Used: Xk+1 Yk+1 Zk+1

JACOBI METHOD

GAUSS – SEIDEL
METHOD

Table 2: Summary of Iterative Process


k JACOBI METHOD GAUSS – SEIDEL METHOD
0
1
2
3
4
5
6
7
8

Overlay the plots per value of x, y and z.


MATLAB Code:
Experiment 3
ECE-M421L: Numerical Methods for ECE Laboratory
2. The following system of equation was generated after the application of the mesh current
law in a circuit:
6 I 2−4 I 3 +V S =0

8 I 2−8 I 3 −V S =−20

−4 I 1−8 I 2 +18 I 3 =0

−I 1+ I 2=10

Solve for I1, I2, I3, and VS.

MATLAB Code:

You might also like