You are on page 1of 12

School of Electrical Engineering,

Electronics Engineering, and


Computer Engineering

Laboratory Experiment Report Rubric

NAME OF STUDENT: DATE SUBMITTED:

Montinola, Rainiel M. Sept 3, 2020

EXPERIMENT TITLE EVALUATOR:

ENGR. ERNESTO M. VERGARA JR.


Solving a Systems of Linear Equations

Poor Fair Good Very Good Excellent


Criteria Score
(1) (2) (3) (4) (5)
A. Completeness The laboratory report The laboratory report The laboratory report The laboratory report The laboratory report
and organization is untidy, did not follow is untidy, followed the is neat, followed the is neat, followed the is very neat, well
of the Experiment the given format, given format, some given format, some given format, no presented, followed
some parts are parts are missing, parts are missing, missing parts, and the given format,
Laboratory
missing, most most questions are not mostly questions are only a few questions organized, and the
Report questions are not answered. not answered. are not answered. required content is
answered. complete.
The result, gathered The result is correct, The result and The result and The result, gathered
data, and answers to however, gathered gathered data were gathered data were all data, and answers to
questions were all data, and answers to correct, however, correct, and most of questions are all
incorrect. If data questions were all answers to questions the answers to correct. If data sheets
B. Correctness of sheets are required in incorrect. If data were all incorrect. If questions are all are required in the
the gathered data the experiment, they sheets are required in data sheets are correct. If data sheets experiment, data
are not used. the experiment, data required in the are required in the sheets are fully
and answers to
sheets are used but experiment, data experiment, data consulted and correct
questions. wrong data are used sheets are consulted sheets are consulted data are used in the
in the computation or but some of the data but with few wrong tabulation or
tabulated. used are wrong. data used in the computation.
computation or
tabulation.

The interpretation of The interpretation of The interpretation of The interpretation of The interpretation of
data and discussion data and discussion data and discussion data and discussion data and discussion
C. Interpretation of
were not based on the were based on the were based on the were based on the were based on the
data and result and data result and data result and data result and data result and data
discussion gathered during the gathered during the gathered during the gathered during the gathered during the
experiment. experiment, but does experiment, and experiment, and experiment and are
not present clarity. somehow presents mostly presents clarity. presented very clearly.
clarity.
The conclusion was The conclusion was The conclusion was The conclusion was The conclusion was
not based on the based on the based on the based on the based on the
D. Conclusion
objectives and all objectives but not all objectives and few of objectives and most of objectives and all of
ideas are not coherent of the ideas are the ideas are coherent the ideas are coherent the ideas are coherent
or clear. coherent nor clear. but not too clear. and clear. and presented very
clearly.
The words used were The words used were The words used were The words used were The words used were
not appropriate, had somehow appropriate, appropriate, had good appropriate, had very appropriate, had
poor grammar, had had good grammar, grammar, had good good grammar, had excellent grammar,
E. Use of Language
bad sentence had good sentence sentence construction very good sentence had excellent
construction and ideas construction and not and few of the ideas construction and sentence construction
were not clearly all ideas were clearly were clearly almost all of the ideas and all of the ideas
expressed. expressed. expressed. were clearly were clearly
expressed. expressed.
The laboratory report The laboratory report The laboratory report The laboratory report The laboratory report
F. Promptness was submitted two or was submitted one was submitted three to was submitted beyond was submitted on
more weeks late. week late. six days late the time assigned to time.
two days late.

AVERAGE: (A+B+C+D+E+F)/6
Exercises:

1. Determine the unknown variable by using LU decomposition. Use additional sheet for the
syntax

(a)

3v + 6x - 3y + 3z = 18
-3v + 6x + 6y - 3z = 9
3v + 6x - 3y + 6z = 24
6v - 3x + 6y + 6z = 42

Answer:

v = 3.2857 x = 1.6190 y = 2.5238 z = 2.0000

Syntax:
(b)

4X1 – 3X2 + X3 – X4 + 2X5 – X6 = 8


-X1 – 3X2 + X3 + X4 – 2X5 + X6 = -7
-3X1 – 2X2 + X3 – 3X4 + X5 – 4X6 = 4
2X1 + X2 – 2X3 – 2X4 + X5 + 4X6 = 9
X1 + X2 – 3X3 + X4 – 2X5 + 5X6 = 2
-X1 – 4X2 + 5X3 + X4 + 4X5 + 5X6 = 9

Answer:

X1 = -0.9224 X2 = -2.2742 X3 = -4.9392


X4 = 1.2470 X5 = 5.496 X6 = 0.0463

Syntax:
2. Determine the unknown variable by applying Gauss-Jacobi Method and Gauss-Seidel
Method, compare the results of the two methods. Use additional sheet for the syntax.

(a)
3v + 6x - 3y + 3z = 18
-3v + 6x + 6y - 3z = 9
3v + 6x - 3y + 6z = 24
6v - 3x + 6y + 6z = 42

Gauss- Jacobi Method

Answer:

v = 3.2857 x = 1.61190 y = 2.5238 z=2

Syntax:
Gauss-Seidel Method

Answer:

v = 3.2857 x = 1.61190 y = 2.5238 z=2

Syntax:
(b)
4X1 – 3X2 + X3 – X4 + 2X5 – X6 = 8
-X1 – 3X2 + X3 + X4 – 2X5 + X6 = -7
-3X1 – 2X2 + X3 – 3X4 + X5 – 4X6 = 4
2X1 + X2 – 2X3 – 2X4 + X5 + 4X6 = 9
X1 + X2 – 3X3 + X4 – 2X5 + 5X6 = 2
-X1 – 4X2 + 5X3 + X4 + 4X5 + 5X6 = 9

Gauss-Jacobi Method

Answer:

X1 = -0.9224 X2 = -2.2742 X3 = -49392 X4 = 1.2470 X5 = 5.5496 X6 = 0.0463

Syntax:
Gauss-Seidel Method

Answer:

X1 = -0.9224 X2 = -2.2742 X3 = -49392 X4 = 1.2470 X5 = 5.5496 X6 = 0.0463

Syntax:
3. Create and run the following M-files, using the given linear equations at problem 1(a)
and 1(b). Compare the results and explain

The result was the same and the only difference is that unlike the original code
the value of Matrix A and B were already set upon the start of the code while in
this new code the users are ask in to type any values, they want for Matrix A and
B.

LU DECOMPOSITION

Create and run the following M-files, using the given linear equations at problem 2(a) and
2(b). Compare the results and explain
Create and run the following M-files, using the given linear equations at problem 2(a) and
2(b). Compare the results and explain

Upon running the M-files we could observe that both of the codes
produce the same output value. This new code is much easier to use since
the system just ask you the values that you need and it automatically solve
for the problem
Interpretation

In the experiment entitled “Solving a System of Linear Equations” the software MATLAB

was used in order to solve and execute the given equation. This experiment aims to help the

students so that they may be able to (1) understand the matrix operation, (2) know how to solve

linear equations using the software MATLAB, (3) know how to apply the direct method in

evaluating linear equations and (4) understand the iterative method in solving linear equations

using MATLAB. This experiment is divided into three parts.

The students were asked to do the first and second part of the experiment which was

determining the variable unknown using LU decomposition. L U decomposition of a matrix is the

factorization of a given square matrix into two triangular matrices, one upper triangular matrix and

one lower triangular matrix, such that the product of these two matrices gives the original matrix.

In MATLAB, there are 2 ways in which you can solve this problem. First, using iterative methods

such as Gauss-Jacobi and Gauss-Seidel method. These two methods represent an alternative to

the process of elimination. The second way to solve linear equations is by direct procedure. The

approach is much simpler to do, as it explicitly addresses the unknown variable.

Finally, the students were asked to construct an M-file containing the code provided for LU

Decomposition, Gauss - Jacobi Method and Gauss - Seidel Method to compare it to the codes

and results of the previous parts. It was after running all the codes provided that concluded that

there much more commands you can use so you can easily solve the problem since if you use

the normal method like Gauss - Jacobi and Gauss - Seidel, a lot of your time can be wasted.
Conclusion

After the experiment entitled “Solving a System of Linear Equations” the students were able

to create a code that was able to solve the given equation they were able to concluded that

MATLAB is a program that provides numerous tools that can enable students to get around

easily in solving for linear equations A system of linear equations is solved in several means.

You need to identify the various commands to use so you can quickly get the answer and in by

using the direct method to solve linear equations you can really get the answer much faster but

these methods can be slow to operate on large sparse matrices, on the other hand, using the

iterative method, you could get the approximate solution to the linear system after a finite number

of steps.

You might also like