Matrix Operations Calculator
Matrix Operations Calculator
Crystal U. Pullan, Elroy John A. Jandicala, Justine Chloe R. Magbuhos, Juliane Nicole P. Fandiño
School of Engineering and Architecture, Computer Engineering Department, National Universirty – Laguna, Calamba,
4027, Philippines
{ pullancu, jandicalaea, magbuhosjr, fandinojp} @students.nu-laguna.edu.ph
Keywords: MATLAB, Linear Equations Solver, Gauss Elimination, Gauss-Jordan Method, LU Decomposition,
Computational Algorithms, Matrix Solutions, User Interface (UI), Educational Tool, Numerical Methods.
Abstract: This is project will introduce a MATLAB tool that could solve 10 by 10 systems of linear equations matrices
using three main types: Gauss Elimination, Gauss-Jordan, and LU Decomposition. Users are provided with
an intuitive interface that allows for friendly use, hence making this a very effective teaching instrument for
students and professionals dealing with computational mathematics and engineers. The accuracy in the results
that are acquired by using the tool verifies that MATLAB really does the job of solving linear systems
effectively, and the interface that it has is the one that makes the tool friendly to use and work with, which is
ideal for application in the real world where complicated linear systems need to be solved.
1 INTRODUCTION
The assigned project was to develop a ten-by- Computer Engineering, it helps analyze the
ten matrix calculator that is capable of circuits and it helps understand the foundation
performing the Matrices operation, LU of algorithms used in machine learning and
Factorization, Gauss Elimination, and Gauss optimization. By creating a tool that automates
Jordan. The purpose of the project us to these calculations, a better understanding can
understand the numerical methods and the be gained regarding on how it works and why
concepts that are integral to the field of it is important in these fields.
engineering, computer studies, and applied
The methods implemented in this project,
mathematics. By building the calculator, the
students aims to gain theoretical knowledge including LU Factorization and Gaussian
elimination techniques, are crucial for
and practice implementation by applying the
efficiently solving large systems of equations.
matrix operation in real-world situations using
the application Matlab. LU Factorization, in particular, is commonly
used to decompose matrices into simpler
The significance of this project comes from a components, making it easier to solve linear
wide range of uses. The Matrix operations are systems. Meanwhile, Gauss and Gauss-Jordan
essential for solving systems of linear Elimination offer systematic approaches to
equations, which are commonly used in the reduce matrices to their simplest forms, either
field of engineering, economics, physics, and to solve systems of equations or to invert
computer science. An example of this, in matrices. These methods are widely used in
both academic and industry settings, making 2.1 Implementation
this project an invaluable opportunity to
develop skills that will be applicable in our 1. Matrix Input and Display
future careers. The EnterMatrixButtonPushed function handles the
input of matrix values. This function:
This project not only reinforced our • Initializes two global variables, mat for the
coefficient matrix and cons for the constants.
programming skills but also gave us insight
• Iterates over each row and column of a
into how computational mathematics is 10x10 grid of numeric fields, extracting
applied in real-world scenarios, preparing us values from the GUI and storing them in the
for more complex tasks we will encounter as matrix (mat) and constants (cons).
we advance in our studies and professional • Updates the TextArea with the entered
endeavors. matrix values for visualization.
2. Gauss Elimination
The GaussEliminationButtonPushed function
1.1 Objectives implements the Gauss Elimination algorithm:
• Forms an augmented matrix by
The main objectives of this project are: concatenating mat and cons.
• Design an interactive user interface (UI) in • Applies forward elimination to create an
Matlabs to capture and display matrix upper triangular matrix, followed by back-
elements (up to 10x10) along with a substitution to solve for unknowns.
constants vector.your sub-objective. • Displays the augmented matrix and the
solution in TextArea and TextArea_3
• Implement matrix operation algorithms, components.
including Gauss Elimination, Gauss-Jordan
Elimination, and LU Decomposition, to 3. Gauss-Jordan Elimination
solve systems of linear equations. The GaussJordanButtonPushed function
implements the Gauss-Jordan Elimination method:
• Display calculation results for matrix • Forms an augmented matrix with mat and
operations within the UI in a user-friendly cons.
format, showing the augmented matrix form • Uses full pivot elimination to make both
and solution vector, thus allowing users to upper and lower triangular entries zero,
visually verify matrix transformations and leading to a reduced row echelon form.
final solutions. • Extracts solutions directly from the final
column of the augmented matrix, updating
TextArea and TextArea_3 with the
2. METHODOLOGY augmented matrix and solutions.
4. LU Decomposition
The methods implemented in this project, including
The LUButtonPushed function performs LU
LU Factorization and Gaussian elimination
Decomposition:
techniques, are crucial for efficiently solving large
• Calls MATLAB's lu function to decompose
systems of equations. LU Factorization is commonly
mat into L (lower triangular) and U (upper
used to decompose matrices into simpler components,
triangular) matrices.
making it easier to solve linear systems. Meanwhile,
Gauss and Gauss-Jordan Elimination offer systematic • Uses forward substitution to solve Ly = B
approaches to reduce matrices to their simplest forms, and back substitution to solve Ux = y for the
either to solve systems of equations or to invert final solution X.
matrices. These methods are widely used in both • Outputs the upper matrix in TextArea and
academic and industry settings, making this project the solution vector in TextArea_3.
an invaluable opportunity to develop skills that will
be applicable in our future careers. 5. Clear Function
The ClearButtonPushed function resets all EditField_125
components: matlab.ui.control.EditField
EditField_124
• Clears the global matrices mat and cons, matlab.ui.control.EditField
resets all EditField values, and hides TextArea_3
solution display components. matlab.ui.control.TextArea
TextArea_2
matlab.ui.control.TextArea
TextArea
2.2 Coding matlab.ui.control.TextArea
EditField_123
matlab.ui.control.EditField
EnterMatrixButton
Provided here is the program used for the matlab.ui.control.Button
functionality of the 10x10 calculator, allowing users ClearButton
to solve linear equations using Gauss Elimination, matlab.ui.control.Button
Gauss-Jordan, and LU Decomposition methods with LUButton
real-time solution display. matlab.ui.control.Button
GaussJordanButton
matlab.ui.control.Button
Coding Program:
GaussEliminationButton
classdef Matrix_Calculator_Interface< matlab.ui.control.Button
matlab.apps.AppBase EditField_121
matlab.ui.control.EditField
% Properties that correspond to EditField_120
app components matlab.ui.control.NumericEditField
properties (Access = public) EditField_119
UIFigure matlab.ui.control.NumericEditField
matlab.ui.Figure EditField_118
GaussJordanButton_2 matlab.ui.control.NumericEditField
matlab.ui.control.Button EditField_117
GaussEliminationButton_2 matlab.ui.control.NumericEditField
matlab.ui.control.Button EditField_116
LUButton_2 matlab.ui.control.NumericEditField
matlab.ui.control.Button EditField_115
ClearButton_2 matlab.ui.control.NumericEditField
matlab.ui.control.Button EditField_114
matlab.ui.control.NumericEditField
EditField_113
EditField_136 matlab.ui.control.NumericEditField
matlab.ui.control.EditField EditField_112
EditField_135 matlab.ui.control.NumericEditField
matlab.ui.control.EditField EditField_111
EditField_134 matlab.ui.control.NumericEditField
matlab.ui.control.EditField EditField_110
EditField_133 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_109
EditField_132 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_108
EditField_131 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_107
EditField_130 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_106
EditField_129 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_105
EditField_128 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_104
EditField_127 matlab.ui.control.EditField
matlab.ui.control.EditField EditField_103
EditField_126 matlab.ui.control.EditField
matlab.ui.control.EditField
EditField_102 EditField_72
matlab.ui.control.EditField matlab.ui.control.NumericEditField
EditField_101 EditField_71
matlab.ui.control.EditField matlab.ui.control.NumericEditField
EditField_100 EditField_70
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_99 EditField_69
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_98 EditField_68
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_97 EditField_67
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_96 EditField_66
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_95 EditField_65
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_94 EditField_64
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_93 EditField_63
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_92 EditField_62
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_91 EditField_61
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_90 EditField_60
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_89 EditField_59
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_88 EditField_58
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_87 EditField_57
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_86 EditField_56
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_85 EditField_55
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_84 EditField_54
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_83 EditField_53
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_82 EditField_52
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_81 EditField_51
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_80 EditField_50
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_79 EditField_49
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_78 EditField_48
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_77 EditField_47
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_76 EditField_46
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_75 EditField_45
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_74 EditField_44
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_73 EditField_43
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_42 EditField_12
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_41 EditField_11
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_40 EditField_10
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_39 EditField_9
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_38 EditField_8
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_37 EditField_7
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_36 EditField_6
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_35 EditField_5
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_34 EditField_4
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_33 EditField_3
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_32 EditField_2
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_31 EditField_1
matlab.ui.control.NumericEditField matlab.ui.control.NumericEditField
EditField_30 end
matlab.ui.control.NumericEditField
EditField_29 % Callbacks that handle
matlab.ui.control.NumericEditField component events
EditField_28 methods (Access = private)
matlab.ui.control.NumericEditField
EditField_27 % Button pushed function:
matlab.ui.control.NumericEditField EnterMatrixButton
EditField_26 function
matlab.ui.control.NumericEditField EnterMatrixButtonPushed(app, event)
EditField_25 %Set matrix and constant
matlab.ui.control.NumericEditField holders as global variables
EditField_24 global mat;
matlab.ui.control.NumericEditField global cons;
EditField_23
matlab.ui.control.NumericEditField %Set matrix and constant
EditField_22 variables' size and make them empty
matlab.ui.control.NumericEditField mat = zeros(10,10);
EditField_21 cons = zeros(10,1);
matlab.ui.control.NumericEditField column =
EditField_20 ["1";"2";"3";"4";"5";"6";"7";"8";"9";"1
matlab.ui.control.NumericEditField 0";]; %Used to hold the rows to print
EditField_19 val = ""; %Used to hold
matlab.ui.control.NumericEditField the row to be inserted in column
EditField_18
matlab.ui.control.NumericEditField %Gets the values of the
EditField_17 editfields and store them in mat
matlab.ui.control.NumericEditField c=1; %Used to count
EditField_16 column
matlab.ui.control.NumericEditField r=1; %Used to count row
EditField_15 while r<=10 %Goes
matlab.ui.control.NumericEditField through each row
EditField_14 while c<=10 %Goes
matlab.ui.control.NumericEditField through each column
EditField_13 i = ((r*10)-10)+c;
matlab.ui.control.NumericEditField %Used to calculate editfield number
%Gets the value of app.EditField_124.Visible
editfield and assigns it to the matrix = 0;
mat(r,c) = app.EditField_125.Visible
app.(sprintf('EditField_%d',i)).Value; = 0;
%The value of app.TextArea_2.Visible =
editfield is then appended to the val 0;
string app.TextArea_3.Visible =
val = 0;
append(val,num2str(mat(r,c))); app.ClearButton_2.Visible
val = append(val," = 0;
"); app.EditField_136.Visible
c=c+1; %Moves to = 0;
the next column app.LUButton_2.Visible =
end 0;
column(r,1) = val;
%Replace the row of with the val string app.GaussEliminationButton_2.Visible =
val = ""; %Reset val 0;
c=1; %Reset column
count app.GaussJordanButton_2.Visible = 0;
r=r+1; %Moves to the end
next row
end % Button pushed function:
ClearButton
%Gets values of constant function
editfields and store them in cons ClearButtonPushed(app, event)
r=1; %Used to count row %Access the global
while r<=10 %Goes through matrix and constant variables
each row global mat;
i = 110+r; %Used to global cons;
calculate editfield number
%Gets the value of %Empty the global matrix
editfield and assigns it to cons and constant variables
cons(r,1) = mat = zeros(10,10);
app.(sprintf('EditField_%d',i)).Value; cons = zeros(10,1);
%The value of app.TextArea.Value = "";
editfield is then appended to the %Empty the Text Area aswell
column string
column(r,1) = %Change label and show
append(column(r,1),"= "); other options
column(r,1) = app.EditField_123.Value
append(column(r,1),num2str(cons(r,1))); = "Input the Values for Matrix";
r=r+1; %Moves to app.ClearButton.Visible
the next row = 0;
end
app.GaussEliminationButton.Visible = 0;
app.TextArea.Value =
column; %Display the strings in column app.GaussJordanButton.Visible = 0;
app.LUButton.Visible =
%Change label and show 0;
other option buttons app.TextArea.Visible =
app.EditField_123.Value = 0;
"The Values of Matrix";
app.ClearButton.Visible = app.EditField_124.Visible = 0;
1;
app.EditField_125.Visible = 0;
app.GaussEliminationButton.Visible = 1; app.TextArea_2.Visible =
0;
app.GaussJordanButton.Visible = 1; app.TextArea_3.Visible =
app.LUButton.Visible = 1; 0;
app.TextArea.Visible = 1;
app.ClearButton_2.Visible = 1;
%The values of the
app.EditField_136.Visible = 1; augmented matrix is appended to the val
app.LUButton_2.Visible = string
1; val =
append(val,num2str(Aug(r,c)));
app.GaussEliminationButton_2.Visible = val = append(val,"
1; ");
c=c+1; %Goes to
app.GaussJordanButton_2.Visible = 1; next column
end end
matp(r,1) = val;
% Button pushed function: %Replace the row of with the val string
GaussEliminationButton val = ""; %Reset val
function c=1; %Reset column
GaussEliminationButtonPushed(app, r=r+1; %Goes to next
event) row
%Access the global end
matrix and constant variables
global mat; %Stores Augmented Matrix
global cons; Constants for later Display
n = size(mat, 1); %For r=1; %Used to count row
counting in computing while r<=10 %Goes
Aug = [mat cons]; through each row
%Create augmented matrix from matrix %The values of the
and constants constants is appended to the matp
string
% Applying Gauss matp(r,1) =
Elimination append(matp(r,1),"= ");
for i = 1:n matp(r,1) =
Aug(i, :) = Aug(i, append(matp(r,1),num2str(Aug(r,11)));
:) / Aug(i, i); % Normalize the pivot r=r+1; %Goes to
for j = i+1:n next row
Aug(j, :) = end
Aug(j, :) - Aug(i, :) * Aug(j, i); %
Eliminate below pivot %Stores Solutions for
end later Display
end r=1; %used to count row
ansp =
% Back Substitution for ["";"";"";"";"";"";"";"";"";"";]; %Used
Solutions to hold the solutions to print
X = zeros(n, 1); while r<=10 %Goes
for i = n:-1:1 through each row
X(i) = Aug(i, end) - %The values of the
Aug(i, i+1:n) * X(i+1:n); solutions is appended to the ansp
end string
ansp(r,1) =
%Stores Augmented Matrix append(ansp(r,1),sprintf("x%d= ",r));
for later Display ansp(r,1) =
matp = append(ansp(r,1),num2str(X(r,1)));
["1";"2";"3";"4";"5";"6";"7";"8";"9";"1 r=r+1; %Goes to
0";]; %Used to hold the rows to print next row
val = ""; %Used to hold end
the row to be inserted in matp
c=1; %used to count %Displays the Augmented
column Matrix and the Solutions
r=1; %used to count row app.TextArea.Value =
while r<=10 %Goes matp;
through each row app.TextArea_3.Value =
while c<=10 %Goes ansp;
through each column
%Change label and show %The values of the
others augmented matrix is appended to the val
app.EditField_123.Value string
= "Augmented Matrix"; val =
append(val,num2str(Aug(r,c)));
app.EditField_125.Visible = 1; val = append(val,"
app.TextArea_3.Visible = ");
1; c=c+1; %Goes to
next column
app.EditField_124.Visible = 0; end
app.TextArea_2.Visible = matp(r,1) = val;
0; %Replace the row of with the val string
end val = ""; %Reset val
c=1; %Reset column
% Button pushed function: r=r+1; %Goes to next
GaussJordanButton row
function end
GaussJordanButtonPushed(app, event)
%Access the global %Stores Augmented Matrix
matrix and constant variables Constants for later Display
global mat; r=1; %Used to count row
global cons; while r<=10 %Goes
n = size(mat, 1); %For through each row
counting in computing %The values of the
Aug = [mat cons]; constants is appended to the matp
%Create augmented matrix from matrix string
and constants matp(r,1) =
append(matp(r,1),"= ");
% Applying Gauss-Jordan matp(r,1) =
Elimination append(matp(r,1),num2str(Aug(r,11)));
for i = 1:n r=r+1; %Goes to
Aug(i, :) = Aug(i, next row
:) / Aug(i, i); % Normalize the pivot end
for j = 1:n
if i ~= j %Stores Solutions for
Aug(j, :) = later Display
Aug(j, :) - Aug(i, :) * Aug(j, i); % r=1; %used to count row
Eliminate both above and below pivot ansp =
end ["";"";"";"";"";"";"";"";"";"";]; %Used
end to hold the solutions to print
end while r<=10 %Goes
through each row
% Extract the solution %The values of the
X = Aug(:, end); solutions is appended to the ansp
string
%Stores Augmented Matrix ansp(r,1) =
for later Display append(ansp(r,1),sprintf("x%d= ",r));
matp = ansp(r,1) =
["1";"2";"3";"4";"5";"6";"7";"8";"9";"1 append(ansp(r,1),num2str(X(r,1)));
0";]; %Used to hold the rows to print r=r+1; %Goes to
val = ""; %Used to hold next row
the row to be inserted in matp end
c=1; %used to count
column %Displays the Augmented
r=1; %used to count row Matrix and the Solutions
while r<=10 %Goes app.TextArea.Value =
through each row matp;
while c<=10 %Goes app.TextArea_3.Value =
through each column ansp;
%Change label and show val = append(val,"
others ");
app.EditField_123.Value c=c+1; %Goes to
= "Augmented Matrix"; next column
end
app.EditField_125.Visible = 1; upp(r,1) = val;
app.TextArea_3.Visible = %Replace the row of with the val string
1; val = ""; %Reset val
c=1; %Reset column
app.EditField_124.Visible = 0; r=r+1; %Goes to next
app.TextArea_2.Visible = row
0; end
end
%Stores Lower Matrix for
% Button pushed function: later Display
LUButton lowp =
function LUButtonPushed(app, ["1";"2";"3";"4";"5";"6";"7";"8";"9";"1
event) 0";]; %Used to hold the rows to print
global mat; val = ""; %Used to hold
global cons; the row to be inserted in lowp
n = size(mat, 1); c=1; %used to count
column
% LU Decomposition r=1; %used to count row
[L, U] = lu(mat); while r<=10 %Goes
through each row
% Solve Ly = B (Forward while c<=10 %Goes
Substitution) through each column
y = zeros(n, 1); %The values of the
for i = 1:n augmented matrix is appended to the val
y(i) = cons(i) - string
L(i, 1:i-1) * y(1:i-1); val =
end append(val,num2str(L(r,c)));
val = append(val,"
% Solve Ux = y (Back ");
Substitution) c=c+1; %Goes to
X = zeros(n, 1); next column
for i = n:-1:1 end
X(i) = (y(i) - U(i, lowp(r,1) = val;
i+1:n) * X(i+1:n)) / U(i, i); %Replace the row of with the val string
end val = ""; %Reset val
c=1; %Reset column
%Stores Upper Matrix for r=r+1; %Goes to next
later Display row
upp = end
["1";"2";"3";"4";"5";"6";"7";"8";"9";"1
0";]; %Used to hold the rows to print %Stores Solutions for
val = ""; %Used to hold later Display
the row to be inserted in upp r=1; %used to count row
c=1; %used to count ansp =
column ["";"";"";"";"";"";"";"";"";"";]; %Used
r=1; %used to count row to hold the solutions to print
while r<=10 %Goes while r<=10 %Goes
through each row through each row
while c<=10 %Goes %The values of the
through each column solutions is appended to the ansp
%The values of the string
augmented matrix is appended to the val ansp(r,1) =
string append(ansp(r,1),sprintf("x%d= ",r));
val = ansp(r,1) =
append(val,num2str(U(r,c))); append(ansp(r,1),num2str(X(r,1)));
r=r+1; %Goes to % Create EditField_2
next row app.EditField_2 =
end uieditfield(app.UIFigure, 'numeric');
app.EditField_125.Visible = 1; app.EditField_3.HorizontalAlignment =
app.TextArea_2.Visible = 'center';
1; app.EditField_3.FontName
app.TextArea_3.Visible = = 'Terminal';
1; app.EditField_3.FontSize
end = 18;
end
app.EditField_3.BackgroundColor =
% Component initialization [0.949 1 0.651];
methods (Access = private) app.EditField_3.Position
= [142 488 40 40];
% Create UIFigure and
components % Create EditField_4
function app.EditField_4 =
createComponents(app) uieditfield(app.UIFigure, 'numeric');
app.EditField_13.BackgroundColor = app.EditField_17.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_14.BackgroundColor = app.EditField_18.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_15.BackgroundColor = app.EditField_19.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_16.BackgroundColor = app.EditField_20.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_20.FontName = 'Terminal'; % Create EditField_24
app.EditField_24 =
app.EditField_20.FontSize = 18; uieditfield(app.UIFigure, 'numeric');
app.EditField_20.BackgroundColor = app.EditField_24.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_21.BackgroundColor = app.EditField_25.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_22.BackgroundColor = app.EditField_26.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_23.BackgroundColor = app.EditField_27.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_27.BackgroundColor = app.EditField_31.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_28.BackgroundColor = app.EditField_32.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_29.BackgroundColor = app.EditField_33.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_30.BackgroundColor = app.EditField_34.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_35.BackgroundColor = app.EditField_39.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_36.BackgroundColor = app.EditField_40.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_37.BackgroundColor = app.EditField_41.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_42.BackgroundColor = app.EditField_46.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_43.BackgroundColor = app.EditField_47.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_44.BackgroundColor = app.EditField_48.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_63.BackgroundColor = app.EditField_67.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_64.BackgroundColor = app.EditField_68.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_65.BackgroundColor = app.EditField_69.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_66.BackgroundColor = app.EditField_70.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_70.FontName = 'Terminal'; % Create EditField_74
app.EditField_74 =
app.EditField_70.FontSize = 18; uieditfield(app.UIFigure, 'numeric');
app.EditField_70.BackgroundColor = app.EditField_74.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_71.BackgroundColor = app.EditField_75.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_72.BackgroundColor = app.EditField_76.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_73.BackgroundColor = app.EditField_77.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_77.BackgroundColor = app.EditField_81.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_78.BackgroundColor = app.EditField_82.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_79.BackgroundColor = app.EditField_83.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_80.BackgroundColor = app.EditField_84.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_85.BackgroundColor = app.EditField_89.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_86.BackgroundColor = app.EditField_90.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_87.BackgroundColor = app.EditField_91.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_92.BackgroundColor = app.EditField_96.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_93.BackgroundColor = app.EditField_97.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_94.BackgroundColor = app.EditField_98.HorizontalAlignment =
[0.949 1 0.651]; 'center';
app.EditField_108.HorizontalAlignment = app.EditField_112.FontName =
'center'; 'Terminal';
app.GaussEliminationButton.FontSize = app.ClearButton.BackgroundColor =
14; [0.502 0.749 1];
app.ClearButton.FontSize
app.GaussEliminationButton.Visible = = 24;
'off'; app.ClearButton.Visible
= 'off';
app.GaussEliminationButton.Position = app.ClearButton.Position
[656 258 155 70]; = [656 163 156 65];
app.ClearButton.Text =
app.GaussEliminationButton.Text = 'Clear';
'Gauss Elimination';
% Create
% Create EnterMatrixButton
GaussJordanButton app.EnterMatrixButton =
app.GaussJordanButton = uibutton(app.UIFigure, 'push');
uibutton(app.UIFigure, 'push');
app.EnterMatrixButton.ButtonPushedFcn =
app.GaussJordanButton.ButtonPushedFcn = createCallbackFcn(app,
createCallbackFcn(app, @EnterMatrixButtonPushed, true);
@GaussJordanButtonPushed, true);
app.EnterMatrixButton.BackgroundColor =
app.GaussJordanButton.BackgroundColor = [0.502 0.749 1];
[1 0.8 1];
app.EnterMatrixButton.FontSize = 18;
app.GaussJordanButton.FontSize = 18;
app.EnterMatrixButton.Position = [655
app.GaussJordanButton.Visible = 'off'; 50 159 79];
6. ACKNOWLEDGEMENTS