0% found this document useful (0 votes)
198 views5 pages

Application of Gauss Jordan On Matlab Computation in Civil Engineering

The document discusses applying the Gauss-Jordan method on MATLAB to solve problems in civil engineering computation. It explains that the Gauss-Jordan method can be used to solve linear systems and find the inverse of a matrix. It then presents the steps taken in MATLAB to solve a specific civil engineering problem, determining the material quantities needed from three pits to meet construction project requirements, using a loop function to perform Gauss-Jordan elimination on the coefficient matrix. The results show that 40.0581 m3 of sand, 71.3140 m3 of fine gravel, and 51.6279 m3 of coarse gravel are needed from each pit.
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)
198 views5 pages

Application of Gauss Jordan On Matlab Computation in Civil Engineering

The document discusses applying the Gauss-Jordan method on MATLAB to solve problems in civil engineering computation. It explains that the Gauss-Jordan method can be used to solve linear systems and find the inverse of a matrix. It then presents the steps taken in MATLAB to solve a specific civil engineering problem, determining the material quantities needed from three pits to meet construction project requirements, using a loop function to perform Gauss-Jordan elimination on the coefficient matrix. The results show that 40.0581 m3 of sand, 71.3140 m3 of fine gravel, and 51.6279 m3 of coarse gravel are needed from each pit.
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/ 5

APPLICATION OF GAUSS JORDAN ON MATLAB

COMPUTATION IN CIVIL ENGINEERING


1
Maizan Rin Dalwain
1
Departemen Tenik Geofisika, Fakultas Teknik Sipil Lingkungan dan Kebumian
Institut Teknologi Sepuluh Nopember (ITS)

ABSTRACT
The Jordan Gauss Method is a method of solving linear problems, while the
Jordan Gauss Method is a development of the gauss elimination method, except that the
matrix is added, on the left it is converted into a diagonal matrix. Computing The Gauss
Jordan method in Matlab can solve mathematics and engineering one of them in the field
of construction. The purpose of asking for the Gauss Jordan method is to determine the
amount of material needed to complete the construction project which requires three-
hole data while the materials can be obtained through a linear agreement. And in this
computational analysis a loop for function is used. From the computational results
carried out in Matlab, it was found that each hole needed to be transported 40.0581 m3
of sand, 71.3140 m3 of fine gravel, and 51.6279 m3 of coarse gravel.
Keywords :Gauss-Jordan,Linear Equation, Matrix

1. PRELIMINARY echelon rows. This method is also one


Gauss elimination is a method for method of solving linear equations using a
running values in a matrix using elementary matrix.
row operations so that they become easier In addition, this method is used to find
matrices. The matrices obtained using this the inverse of a matrix. To further enhance
method use the upper triangular matrix or your understanding of the Gauss
commonly called the row-echelon matrix. Elimination Method and Gauss Jordan
This method is one method of solving Elimination, please reopen the Elementary
system linear equations using a matrix. The Linear Algebra book.
method is to change the system of linear 2. METODOLOGY
equations into an augmented matrix and
operate it. After becoming a row-echo 2.1 Tools
matrix, do a reverse substitution to get the The tool that will be used in this
value of the system variables. experimental calculation is MATLAB
computing application software.
The Gauss-Jordan elimination is the
development of Gauss elimination. The 2.2 Flow Chart
matrix obtained using the Gauss-Jordan Steps to perform calculations using
Elimination method is even simpler. The Gauss Jordan Method through the
trick is to continue line operations from MATLAB software will be described in the
Gauss elimination to produce reduced following flow chart.
equation, then formed into a matrix, we call
it the M. matrix. Then the same thing is
done to the data of materials needed in the
development and we call matrix N. The N
matrix is a column matrix. Then the matrix
M and N Matrix are combined into the Z
Matrix.
Next, we make the function of Gauss-
Jordan Elimination. Here we use [m, n] =
size (C), which uses to rows and columns of
a matrix. After that, before operating the
Gauss Jordan method, pivoting is used.
Pivoting is used as a calculation operation
with the main value to start the calculation.
Then, the == sign has a function to compare
two variables and information whether the
two variables match or not.
By operating the Gauss Jordan method
using the for-end structure (loop for
function), the result obtained is a matrix
whose elements other than the diagonal
matrix change to zero. At the end of the
matrix, the appearance and results of the
display function and the x sign have the
opportunity to be the answer value. To get
Fig 1. Gauss Jordan Method with for loop the value of x, y and z easily, we can input
the diagonal to one. We are named the
3. RESULT AND ANALYSIS result of x, y and z value as ‘result’. Finally,
In the discussion that a civil engineer we display Gauss-Jordan result by typing C
has the task of development requiring 4800 and display the result of x, y and z value by
m3 of Sandstone, 5800m3 of fine gravel, typing the result (‘). So the result of x is
and 5700 m3 of coarse gravel for building 40.0581 m3, y is 71.3140 m3 and z is
projects. And there are three pits where the 51.6279 m3.
material is obtained. Each Hole has its own 4. CONCLUSION
material compositions. The composition of
the materials already told in the table that From the analysis using Gauss Jordan
was found on the attachments below. The method it can be concluded that it used for
question is the amount of material that loop so it get the result of x is 40.0581 m3,
needs to be transported in each hole so that y is 71.3140 m3 and z is 51.6279 m3.
construction needs are met. BIBLIOGRAPHY
We can solve this problem through the 1. https://www.codewithc.com/gauss-
Gauss Jordan method on Matlab jordan-method-in-matlab/ acces on April
computation. The first thing we have to do 16th 2019, 20:18 pm
in Matlab is to identify the composition
data of each hole and form it into a linear
2. http://web.mit.edu/18.06-
esg/18.034/notes/GJmat.pdf acces on
April 16th 2019, 17:30 pm
Attachment

1. Compotition Of three Pits

2. Script on Matlab
SCRIPT FUNCTION
%MAIZAN RIN DALWAIN%
%03411740000022%
%KOMGE D%

clear all
clc

% 52x+20y+25z=4800 Identification of material produced in three pits


% 30x+50y+20z=5800 and formed into linear equations
% 18x+30y+55z=5700

M = [52 20 25; 30 50 20; 18 30 55]; Change the linear equations into matrix
N = [4800; 5800; 5700];

Z=[M N] Combine the two matrix

% METODE GAUSS JORDAN


[m,n]=size(Z);
for j=1:m-1
for z=2:m
%PIVOTING
if Z(j,j)==0
%PIVOTING
t=Z(1,:);Z(1,:)=Z(z,:);
%PIVOTING
Z(z,:)=t;
%PIVOTING
end
%PIVOTING
end
for i=j+1:m
Z(i,:)=Z(i,:)-
Z(j,:)*(Z(i,j)/Z(j,j)); %Convert
the elements below the major
diagonal to zeros
end
end
for j=m:-1:2
for i=j-1:-1:1
Z(i,:)=Z(i,:)-
Z(j,:)*(Z(i,j)/Z(j,j));
end
end
for s=1:m
Z(s,:)=Z(s,:)/Z(s,s);
x(s)=Z(s,n);
end
disp('Gauss-Jordan method:');
Z
x'

You might also like