0% found this document useful (0 votes)
18 views

Matrix Operations Calculator

Uploaded by

Artistine
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Matrix Operations Calculator

Uploaded by

Artistine
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

Matrix Operations Calculator: A Comprehensive Tool

for Matrix Manipulation

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');

%Displays the Augmented app.EditField_2.HorizontalAlignment =


Matrix and the Solutions 'center';
app.TextArea.Value = app.EditField_2.FontName
upp; = 'Terminal';
app.TextArea_2.Value = app.EditField_2.FontSize
lowp; = 18;
app.TextArea_3.Value =
ansp; app.EditField_2.BackgroundColor =
[0.949 1 0.651];
%Change label and show app.EditField_2.Position
others = [92 488 40 40];
app.EditField_123.Value
= "The Upper Matrix"; % Create EditField_3
app.EditField_3 =
app.EditField_124.Visible = 1; 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');

% Create UIFigure and app.EditField_4.HorizontalAlignment =


hide until all components are created 'center';
app.UIFigure = app.EditField_4.FontName
uifigure('Visible', 'off'); = 'Terminal';
app.UIFigure.Position = app.EditField_4.FontSize
[100 100 1080 906]; = 18;
app.UIFigure.Name =
'MATLAB App'; app.EditField_4.BackgroundColor =
[0.949 1 0.651];
% Create EditField_1 app.EditField_4.Position
app.EditField_1 = = [192 488 40 40];
uieditfield(app.UIFigure, 'numeric');
% Create EditField_5
app.EditField_1.HorizontalAlignment = app.EditField_5 =
'center'; uieditfield(app.UIFigure, 'numeric');
app.EditField_1.FontName
= 'Terminal'; app.EditField_5.HorizontalAlignment =
app.EditField_1.FontSize 'center';
= 18; app.EditField_5.FontName
= 'Terminal';
app.EditField_1.BackgroundColor = app.EditField_5.FontSize
[0.949 1 0.651]; = 18;
app.EditField_1.Position
= [42 488 40 40]; app.EditField_5.BackgroundColor =
[0.949 1 0.651];
app.EditField_5.Position
= [242 488 40 40]; app.EditField_9.BackgroundColor =
[0.949 1 0.651];
% Create EditField_6 app.EditField_9.Position
app.EditField_6 = = [442 488 40 40];
uieditfield(app.UIFigure, 'numeric');
% Create EditField_10
app.EditField_6.HorizontalAlignment = app.EditField_10 =
'center'; uieditfield(app.UIFigure, 'numeric');
app.EditField_6.FontName
= 'Terminal'; app.EditField_10.HorizontalAlignment =
app.EditField_6.FontSize 'center';
= 18;
app.EditField_10.FontName = 'Terminal';
app.EditField_6.BackgroundColor =
[0.949 1 0.651]; app.EditField_10.FontSize = 18;
app.EditField_6.Position
= [292 488 40 40]; app.EditField_10.BackgroundColor =
[0.949 1 0.651];
% Create EditField_7
app.EditField_7 = app.EditField_10.Position = [492 488 40
uieditfield(app.UIFigure, 'numeric'); 40];

app.EditField_7.HorizontalAlignment = % Create EditField_11


'center'; app.EditField_11 =
app.EditField_7.FontName uieditfield(app.UIFigure, 'numeric');
= 'Terminal';
app.EditField_7.FontSize app.EditField_11.HorizontalAlignment =
= 18; 'center';

app.EditField_7.BackgroundColor = app.EditField_11.FontName = 'Terminal';


[0.949 1 0.651];
app.EditField_7.Position app.EditField_11.FontSize = 18;
= [342 488 40 40];
app.EditField_11.BackgroundColor =
% Create EditField_8 [0.949 1 0.651];
app.EditField_8 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_11.Position = [42 438 40
40];
app.EditField_8.HorizontalAlignment =
'center'; % Create EditField_12
app.EditField_8.FontName app.EditField_12 =
= 'Terminal'; uieditfield(app.UIFigure, 'numeric');
app.EditField_8.FontSize
= 18; app.EditField_12.HorizontalAlignment =
'center';
app.EditField_8.BackgroundColor =
[0.949 1 0.651]; app.EditField_12.FontName = 'Terminal';
app.EditField_8.Position
= [392 488 40 40]; app.EditField_12.FontSize = 18;

% Create EditField_9 app.EditField_12.BackgroundColor =


app.EditField_9 = [0.949 1 0.651];
uieditfield(app.UIFigure, 'numeric');
app.EditField_12.Position = [92 438 40
app.EditField_9.HorizontalAlignment = 40];
'center';
app.EditField_9.FontName % Create EditField_13
= 'Terminal'; app.EditField_13 =
app.EditField_9.FontSize uieditfield(app.UIFigure, 'numeric');
= 18;
app.EditField_13.HorizontalAlignment = app.EditField_16.Position = [292 438 40
'center'; 40];

app.EditField_13.FontName = 'Terminal'; % Create EditField_17


app.EditField_17 =
app.EditField_13.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_13.BackgroundColor = app.EditField_17.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_13.Position = [142 438 40 app.EditField_17.FontName = 'Terminal';


40];
app.EditField_17.FontSize = 18;
% Create EditField_14
app.EditField_14 = app.EditField_17.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_14.HorizontalAlignment = app.EditField_17.Position = [342 438 40


'center'; 40];

app.EditField_14.FontName = 'Terminal'; % Create EditField_18


app.EditField_18 =
app.EditField_14.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_14.BackgroundColor = app.EditField_18.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_14.Position = [192 438 40 app.EditField_18.FontName = 'Terminal';


40];
app.EditField_18.FontSize = 18;
% Create EditField_15
app.EditField_15 = app.EditField_18.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_15.HorizontalAlignment = app.EditField_18.Position = [392 438 40


'center'; 40];

app.EditField_15.FontName = 'Terminal'; % Create EditField_19


app.EditField_19 =
app.EditField_15.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_15.BackgroundColor = app.EditField_19.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_15.Position = [242 438 40 app.EditField_19.FontName = 'Terminal';


40];
app.EditField_19.FontSize = 18;
% Create EditField_16
app.EditField_16 = app.EditField_19.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_16.HorizontalAlignment = app.EditField_19.Position = [442 438 40


'center'; 40];

app.EditField_16.FontName = 'Terminal'; % Create EditField_20


app.EditField_20 =
app.EditField_16.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

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_20.Position = [492 438 40 app.EditField_24.FontName = 'Terminal';


40];
app.EditField_24.FontSize = 18;
% Create EditField_21
app.EditField_21 = app.EditField_24.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_21.HorizontalAlignment = app.EditField_24.Position = [192 388 40


'center'; 40];

app.EditField_21.FontName = 'Terminal'; % Create EditField_25


app.EditField_25 =
app.EditField_21.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_21.BackgroundColor = app.EditField_25.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_21.Position = [42 388 40 app.EditField_25.FontName = 'Terminal';


40];
app.EditField_25.FontSize = 18;
% Create EditField_22
app.EditField_22 = app.EditField_25.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_22.HorizontalAlignment = app.EditField_25.Position = [242 388 40


'center'; 40];

app.EditField_22.FontName = 'Terminal'; % Create EditField_26


app.EditField_26 =
app.EditField_22.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_22.BackgroundColor = app.EditField_26.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_22.Position = [92 388 40 app.EditField_26.FontName = 'Terminal';


40];
app.EditField_26.FontSize = 18;
% Create EditField_23
app.EditField_23 = app.EditField_26.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_23.HorizontalAlignment = app.EditField_26.Position = [292 388 40


'center'; 40];

app.EditField_23.FontName = 'Terminal'; % Create EditField_27


app.EditField_27 =
app.EditField_23.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_23.BackgroundColor = app.EditField_27.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_23.Position = [142 388 40 app.EditField_27.FontName = 'Terminal';


40];
app.EditField_31 =
app.EditField_27.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_27.BackgroundColor = app.EditField_31.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_27.Position = [342 388 40 app.EditField_31.FontName = 'Terminal';


40];
app.EditField_31.FontSize = 18;
% Create EditField_28
app.EditField_28 = app.EditField_31.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_28.HorizontalAlignment = app.EditField_31.Position = [42 338 40


'center'; 40];

app.EditField_28.FontName = 'Terminal'; % Create EditField_32


app.EditField_32 =
app.EditField_28.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_28.BackgroundColor = app.EditField_32.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_28.Position = [392 388 40 app.EditField_32.FontName = 'Terminal';


40];
app.EditField_32.FontSize = 18;
% Create EditField_29
app.EditField_29 = app.EditField_32.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_29.HorizontalAlignment = app.EditField_32.Position = [92 338 40


'center'; 40];

app.EditField_29.FontName = 'Terminal'; % Create EditField_33


app.EditField_33 =
app.EditField_29.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_29.BackgroundColor = app.EditField_33.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_29.Position = [442 388 40 app.EditField_33.FontName = 'Terminal';


40];
app.EditField_33.FontSize = 18;
% Create EditField_30
app.EditField_30 = app.EditField_33.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_30.HorizontalAlignment = app.EditField_33.Position = [142 338 40


'center'; 40];

app.EditField_30.FontName = 'Terminal'; % Create EditField_34


app.EditField_34 =
app.EditField_30.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_30.BackgroundColor = app.EditField_34.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_30.Position = [492 388 40 app.EditField_34.FontName = 'Terminal';


40];
app.EditField_34.FontSize = 18;
% Create EditField_31
app.EditField_34.BackgroundColor = app.EditField_38.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_34.Position = [192 338 40 app.EditField_38.FontName = 'Terminal';


40];
app.EditField_38.FontSize = 18;
% Create EditField_35
app.EditField_35 = app.EditField_38.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_35.HorizontalAlignment = app.EditField_38.Position = [392 338 40


'center'; 40];

app.EditField_35.FontName = 'Terminal'; % Create EditField_39


app.EditField_39 =
app.EditField_35.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_35.BackgroundColor = app.EditField_39.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_35.Position = [242 338 40 app.EditField_39.FontName = 'Terminal';


40];
app.EditField_39.FontSize = 18;
% Create EditField_36
app.EditField_36 = app.EditField_39.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_36.HorizontalAlignment = app.EditField_39.Position = [442 338 40


'center'; 40];

app.EditField_36.FontName = 'Terminal'; % Create EditField_40


app.EditField_40 =
app.EditField_36.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_36.BackgroundColor = app.EditField_40.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_36.Position = [292 338 40 app.EditField_40.FontName = 'Terminal';


40];
app.EditField_40.FontSize = 18;
% Create EditField_37
app.EditField_37 = app.EditField_40.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_37.HorizontalAlignment = app.EditField_40.Position = [492 338 40


'center'; 40];

app.EditField_37.FontName = 'Terminal'; % Create EditField_41


app.EditField_41 =
app.EditField_37.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_37.BackgroundColor = app.EditField_41.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_37.Position = [342 338 40 app.EditField_41.FontName = 'Terminal';


40];
app.EditField_41.FontSize = 18;
% Create EditField_38
app.EditField_38 = app.EditField_41.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];
app.EditField_41.Position = [42 288 40 app.EditField_45.FontName = 'Terminal';
40];
app.EditField_45.FontSize = 18;
% Create EditField_42
app.EditField_42 = app.EditField_45.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_42.HorizontalAlignment = app.EditField_45.Position = [242 288 40


'center'; 40];

app.EditField_42.FontName = 'Terminal'; % Create EditField_46


app.EditField_46 =
app.EditField_42.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_42.BackgroundColor = app.EditField_46.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_42.Position = [92 288 40 app.EditField_46.FontName = 'Terminal';


40];
app.EditField_46.FontSize = 18;
% Create EditField_43
app.EditField_43 = app.EditField_46.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_43.HorizontalAlignment = app.EditField_46.Position = [292 288 40


'center'; 40];

app.EditField_43.FontName = 'Terminal'; % Create EditField_47


app.EditField_47 =
app.EditField_43.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_43.BackgroundColor = app.EditField_47.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_43.Position = [142 288 40 app.EditField_47.FontName = 'Terminal';


40];
app.EditField_47.FontSize = 18;
% Create EditField_44
app.EditField_44 = app.EditField_47.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_44.HorizontalAlignment = app.EditField_47.Position = [342 288 40


'center'; 40];

app.EditField_44.FontName = 'Terminal'; % Create EditField_48


app.EditField_48 =
app.EditField_44.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_44.BackgroundColor = app.EditField_48.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_44.Position = [192 288 40 app.EditField_48.FontName = 'Terminal';


40];
app.EditField_48.FontSize = 18;
% Create EditField_45
app.EditField_45 = app.EditField_48.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_45.HorizontalAlignment = app.EditField_48.Position = [392 288 40


'center'; 40];
% Create EditField_49 app.EditField_52.FontSize = 18;
app.EditField_49 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_52.BackgroundColor =
[0.949 1 0.651];
app.EditField_49.HorizontalAlignment =
'center'; app.EditField_52.Position = [92 238 40
40];
app.EditField_49.FontName = 'Terminal';
% Create EditField_53
app.EditField_49.FontSize = 18; app.EditField_53 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_49.BackgroundColor =
[0.949 1 0.651]; app.EditField_53.HorizontalAlignment =
'center';
app.EditField_49.Position = [442 288 40
40]; app.EditField_53.FontName = 'Terminal';

% Create EditField_50 app.EditField_53.FontSize = 18;


app.EditField_50 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_53.BackgroundColor =
[0.949 1 0.651];
app.EditField_50.HorizontalAlignment =
'center'; app.EditField_53.Position = [142 238 40
40];
app.EditField_50.FontName = 'Terminal';
% Create EditField_54
app.EditField_50.FontSize = 18; app.EditField_54 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_50.BackgroundColor =
[0.949 1 0.651]; app.EditField_54.HorizontalAlignment =
'center';
app.EditField_50.Position = [492 288 40
40]; app.EditField_54.FontName = 'Terminal';

% Create EditField_51 app.EditField_54.FontSize = 18;


app.EditField_51 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_54.BackgroundColor =
[0.949 1 0.651];
app.EditField_51.HorizontalAlignment =
'center'; app.EditField_54.Position = [192 238 40
40];
app.EditField_51.FontName = 'Terminal';
% Create EditField_55
app.EditField_51.FontSize = 18; app.EditField_55 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_51.BackgroundColor =
[0.949 1 0.651]; app.EditField_55.HorizontalAlignment =
'center';
app.EditField_51.Position = [42 238 40
40]; app.EditField_55.FontName = 'Terminal';

% Create EditField_52 app.EditField_55.FontSize = 18;


app.EditField_52 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_55.BackgroundColor =
[0.949 1 0.651];
app.EditField_52.HorizontalAlignment =
'center'; app.EditField_55.Position = [242 238 40
40];
app.EditField_52.FontName = 'Terminal';
% Create EditField_56
app.EditField_56 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_59.BackgroundColor =
[0.949 1 0.651];
app.EditField_56.HorizontalAlignment =
'center'; app.EditField_59.Position = [442 238 40
40];
app.EditField_56.FontName = 'Terminal';
% Create EditField_60
app.EditField_56.FontSize = 18; app.EditField_60 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_56.BackgroundColor =
[0.949 1 0.651]; app.EditField_60.HorizontalAlignment =
'center';
app.EditField_56.Position = [292 238 40
40]; app.EditField_60.FontName = 'Terminal';

% Create EditField_57 app.EditField_60.FontSize = 18;


app.EditField_57 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_60.BackgroundColor =
[0.949 1 0.651];
app.EditField_57.HorizontalAlignment =
'center'; app.EditField_60.Position = [492 238 40
40];
app.EditField_57.FontName = 'Terminal';
% Create EditField_61
app.EditField_57.FontSize = 18; app.EditField_61 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_57.BackgroundColor =
[0.949 1 0.651]; app.EditField_61.HorizontalAlignment =
'center';
app.EditField_57.Position = [342 238 40
40]; app.EditField_61.FontName = 'Terminal';

% Create EditField_58 app.EditField_61.FontSize = 18;


app.EditField_58 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_61.BackgroundColor =
[0.949 1 0.651];
app.EditField_58.HorizontalAlignment =
'center'; app.EditField_61.Position = [42 188 40
40];
app.EditField_58.FontName = 'Terminal';
% Create EditField_62
app.EditField_58.FontSize = 18; app.EditField_62 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_58.BackgroundColor =
[0.949 1 0.651]; app.EditField_62.HorizontalAlignment =
'center';
app.EditField_58.Position = [392 238 40
40]; app.EditField_62.FontName = 'Terminal';

% Create EditField_59 app.EditField_62.FontSize = 18;


app.EditField_59 =
uieditfield(app.UIFigure, 'numeric'); app.EditField_62.BackgroundColor =
[0.949 1 0.651];
app.EditField_59.HorizontalAlignment =
'center'; app.EditField_62.Position = [92 188 40
40];
app.EditField_59.FontName = 'Terminal';
% Create EditField_63
app.EditField_59.FontSize = 18; app.EditField_63 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_63.HorizontalAlignment = app.EditField_66.Position = [292 188 40
'center'; 40];

app.EditField_63.FontName = 'Terminal'; % Create EditField_67


app.EditField_67 =
app.EditField_63.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_63.BackgroundColor = app.EditField_67.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_63.Position = [142 188 40 app.EditField_67.FontName = 'Terminal';


40];
app.EditField_67.FontSize = 18;
% Create EditField_64
app.EditField_64 = app.EditField_67.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_64.HorizontalAlignment = app.EditField_67.Position = [342 188 40


'center'; 40];

app.EditField_64.FontName = 'Terminal'; % Create EditField_68


app.EditField_68 =
app.EditField_64.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_64.BackgroundColor = app.EditField_68.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_64.Position = [192 188 40 app.EditField_68.FontName = 'Terminal';


40];
app.EditField_68.FontSize = 18;
% Create EditField_65
app.EditField_65 = app.EditField_68.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_65.HorizontalAlignment = app.EditField_68.Position = [392 188 40


'center'; 40];

app.EditField_65.FontName = 'Terminal'; % Create EditField_69


app.EditField_69 =
app.EditField_65.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_65.BackgroundColor = app.EditField_69.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_65.Position = [242 188 40 app.EditField_69.FontName = 'Terminal';


40];
app.EditField_69.FontSize = 18;
% Create EditField_66
app.EditField_66 = app.EditField_69.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_66.HorizontalAlignment = app.EditField_69.Position = [442 188 40


'center'; 40];

app.EditField_66.FontName = 'Terminal'; % Create EditField_70


app.EditField_70 =
app.EditField_66.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

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_70.Position = [492 188 40 app.EditField_74.FontName = 'Terminal';


40];
app.EditField_74.FontSize = 18;
% Create EditField_71
app.EditField_71 = app.EditField_74.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_71.HorizontalAlignment = app.EditField_74.Position = [192 138 40


'center'; 40];

app.EditField_71.FontName = 'Terminal'; % Create EditField_75


app.EditField_75 =
app.EditField_71.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_71.BackgroundColor = app.EditField_75.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_71.Position = [42 138 40 app.EditField_75.FontName = 'Terminal';


40];
app.EditField_75.FontSize = 18;
% Create EditField_72
app.EditField_72 = app.EditField_75.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_72.HorizontalAlignment = app.EditField_75.Position = [242 138 40


'center'; 40];

app.EditField_72.FontName = 'Terminal'; % Create EditField_76


app.EditField_76 =
app.EditField_72.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_72.BackgroundColor = app.EditField_76.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_72.Position = [92 138 40 app.EditField_76.FontName = 'Terminal';


40];
app.EditField_76.FontSize = 18;
% Create EditField_73
app.EditField_73 = app.EditField_76.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_73.HorizontalAlignment = app.EditField_76.Position = [292 138 40


'center'; 40];

app.EditField_73.FontName = 'Terminal'; % Create EditField_77


app.EditField_77 =
app.EditField_73.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_73.BackgroundColor = app.EditField_77.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_73.Position = [142 138 40 app.EditField_77.FontName = 'Terminal';


40];
app.EditField_81 =
app.EditField_77.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_77.BackgroundColor = app.EditField_81.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_77.Position = [342 138 40 app.EditField_81.FontName = 'Terminal';


40];
app.EditField_81.FontSize = 18;
% Create EditField_78
app.EditField_78 = app.EditField_81.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_78.HorizontalAlignment = app.EditField_81.Position = [42 88 40


'center'; 40];

app.EditField_78.FontName = 'Terminal'; % Create EditField_82


app.EditField_82 =
app.EditField_78.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_78.BackgroundColor = app.EditField_82.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_78.Position = [392 138 40 app.EditField_82.FontName = 'Terminal';


40];
app.EditField_82.FontSize = 18;
% Create EditField_79
app.EditField_79 = app.EditField_82.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_79.HorizontalAlignment = app.EditField_82.Position = [92 88 40


'center'; 40];

app.EditField_79.FontName = 'Terminal'; % Create EditField_83


app.EditField_83 =
app.EditField_79.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_79.BackgroundColor = app.EditField_83.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_79.Position = [442 138 40 app.EditField_83.FontName = 'Terminal';


40];
app.EditField_83.FontSize = 18;
% Create EditField_80
app.EditField_80 = app.EditField_83.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_80.HorizontalAlignment = app.EditField_83.Position = [142 88 40


'center'; 40];

app.EditField_80.FontName = 'Terminal'; % Create EditField_84


app.EditField_84 =
app.EditField_80.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_80.BackgroundColor = app.EditField_84.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_80.Position = [492 138 40 app.EditField_84.FontName = 'Terminal';


40];
app.EditField_84.FontSize = 18;
% Create EditField_81
app.EditField_84.BackgroundColor = app.EditField_88.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_84.Position = [192 88 40 app.EditField_88.FontName = 'Terminal';


40];
app.EditField_88.FontSize = 18;
% Create EditField_85
app.EditField_85 = app.EditField_88.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_85.HorizontalAlignment = app.EditField_88.Position = [392 88 40


'center'; 40];

app.EditField_85.FontName = 'Terminal'; % Create EditField_89


app.EditField_89 =
app.EditField_85.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_85.BackgroundColor = app.EditField_89.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_85.Position = [242 88 40 app.EditField_89.FontName = 'Terminal';


40];
app.EditField_89.FontSize = 18;
% Create EditField_86
app.EditField_86 = app.EditField_89.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_86.HorizontalAlignment = app.EditField_89.Position = [442 88 40


'center'; 40];

app.EditField_86.FontName = 'Terminal'; % Create EditField_90


app.EditField_90 =
app.EditField_86.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_86.BackgroundColor = app.EditField_90.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_86.Position = [292 88 40 app.EditField_90.FontName = 'Terminal';


40];
app.EditField_90.FontSize = 18;
% Create EditField_87
app.EditField_87 = app.EditField_90.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_87.HorizontalAlignment = app.EditField_90.Position = [492 88 40


'center'; 40];

app.EditField_87.FontName = 'Terminal'; % Create EditField_91


app.EditField_91 =
app.EditField_87.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_87.BackgroundColor = app.EditField_91.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_87.Position = [342 88 40 app.EditField_91.FontName = 'Terminal';


40];
app.EditField_91.FontSize = 18;
% Create EditField_88
app.EditField_88 = app.EditField_91.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];
app.EditField_91.Position = [42 38 40 app.EditField_95.FontName = 'Terminal';
40];
app.EditField_95.FontSize = 18;
% Create EditField_92
app.EditField_92 = app.EditField_95.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_92.HorizontalAlignment = app.EditField_95.Position = [242 38 40


'center'; 40];

app.EditField_92.FontName = 'Terminal'; % Create EditField_96


app.EditField_96 =
app.EditField_92.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_92.BackgroundColor = app.EditField_96.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_92.Position = [92 38 40 app.EditField_96.FontName = 'Terminal';


40];
app.EditField_96.FontSize = 18;
% Create EditField_93
app.EditField_93 = app.EditField_96.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_93.HorizontalAlignment = app.EditField_96.Position = [292 38 40


'center'; 40];

app.EditField_93.FontName = 'Terminal'; % Create EditField_97


app.EditField_97 =
app.EditField_93.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_93.BackgroundColor = app.EditField_97.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_93.Position = [142 38 40 app.EditField_97.FontName = 'Terminal';


40];
app.EditField_97.FontSize = 18;
% Create EditField_94
app.EditField_94 = app.EditField_97.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_94.HorizontalAlignment = app.EditField_97.Position = [342 38 40


'center'; 40];

app.EditField_94.FontName = 'Terminal'; % Create EditField_98


app.EditField_98 =
app.EditField_94.FontSize = 18; uieditfield(app.UIFigure, 'numeric');

app.EditField_94.BackgroundColor = app.EditField_98.HorizontalAlignment =
[0.949 1 0.651]; 'center';

app.EditField_94.Position = [192 38 40 app.EditField_98.FontName = 'Terminal';


40];
app.EditField_98.FontSize = 18;
% Create EditField_95
app.EditField_95 = app.EditField_98.BackgroundColor =
uieditfield(app.UIFigure, 'numeric'); [0.949 1 0.651];

app.EditField_95.HorizontalAlignment = app.EditField_98.Position = [392 38 40


'center'; 40];
app.EditField_102.Value
% Create EditField_99 = 'x2';
app.EditField_99 =
uieditfield(app.UIFigure, 'numeric'); % Create EditField_103
app.EditField_103 =
app.EditField_99.HorizontalAlignment = uieditfield(app.UIFigure, 'text');
'center';
app.EditField_103.Editable = 'off';
app.EditField_99.FontName = 'Terminal';
app.EditField_103.HorizontalAlignment =
app.EditField_99.FontSize = 18; 'center';

app.EditField_99.BackgroundColor = app.EditField_103.Position = [142 534


[0.949 1 0.651]; 40 22];
app.EditField_103.Value
app.EditField_99.Position = [442 38 40 = 'x3';
40];
% Create EditField_104
% Create EditField_100 app.EditField_104 =
app.EditField_100 = uieditfield(app.UIFigure, 'text');
uieditfield(app.UIFigure, 'numeric');
app.EditField_104.Editable = 'off';
app.EditField_100.HorizontalAlignment =
'center'; app.EditField_104.HorizontalAlignment =
'center';
app.EditField_100.FontName =
'Terminal'; app.EditField_104.Position = [192 534
40 22];
app.EditField_100.FontSize = 18; app.EditField_104.Value
= 'x4';
app.EditField_100.BackgroundColor =
[0.949 1 0.651]; % Create EditField_105
app.EditField_105 =
app.EditField_100.Position = [492 38 40 uieditfield(app.UIFigure, 'text');
40];
app.EditField_105.Editable = 'off';
% Create EditField_101
app.EditField_101 = app.EditField_105.HorizontalAlignment =
uieditfield(app.UIFigure, 'text'); 'center';

app.EditField_101.Editable = 'off'; app.EditField_105.Position = [242 534


40 22];
app.EditField_101.HorizontalAlignment = app.EditField_105.Value
'center'; = 'x5';

app.EditField_101.Position = [42 534 40 % Create EditField_106


22]; app.EditField_106 =
app.EditField_101.Value uieditfield(app.UIFigure, 'text');
= 'x1';
app.EditField_106.Editable = 'off';
% Create EditField_102
app.EditField_102 = app.EditField_106.HorizontalAlignment =
uieditfield(app.UIFigure, 'text'); 'center';

app.EditField_102.Editable = 'off'; app.EditField_106.Position = [292 534


40 22];
app.EditField_102.HorizontalAlignment = app.EditField_106.Value
'center'; = 'x6';

app.EditField_102.Position = [92 534 40 % Create EditField_107


22];
app.EditField_107 =
uieditfield(app.UIFigure, 'text'); app.EditField_111.FontName =
'Terminal';
app.EditField_107.Editable = 'off';
app.EditField_111.FontSize = 18;
app.EditField_107.HorizontalAlignment =
'center'; app.EditField_111.BackgroundColor =
[0.949 1 0.651];
app.EditField_107.Position = [342 534
40 22]; app.EditField_111.Position = [582 488
app.EditField_107.Value 40 40];
= 'x7';
% Create EditField_112
% Create EditField_108 app.EditField_112 =
app.EditField_108 = uieditfield(app.UIFigure, 'numeric');
uieditfield(app.UIFigure, 'text');
app.EditField_112.HorizontalAlignment =
app.EditField_108.Editable = 'off'; 'center';

app.EditField_108.HorizontalAlignment = app.EditField_112.FontName =
'center'; 'Terminal';

app.EditField_108.Position = [392 534 app.EditField_112.FontSize = 18;


40 22];
app.EditField_108.Value app.EditField_112.BackgroundColor =
= 'x8'; [0.949 1 0.651];

% Create EditField_109 app.EditField_112.Position = [582 438


app.EditField_109 = 40 40];
uieditfield(app.UIFigure, 'text');
% Create EditField_113
app.EditField_109.Editable = 'off'; app.EditField_113 =
uieditfield(app.UIFigure, 'numeric');
app.EditField_109.HorizontalAlignment =
'center'; app.EditField_113.HorizontalAlignment =
'center';
app.EditField_109.Position = [442 534
40 22]; app.EditField_113.FontName =
app.EditField_109.Value 'Terminal';
= 'x9';
app.EditField_113.FontSize = 18;
% Create EditField_110
app.EditField_110 = app.EditField_113.BackgroundColor =
uieditfield(app.UIFigure, 'text'); [0.949 1 0.651];

app.EditField_110.Editable = 'off'; app.EditField_113.Position = [582 388


40 40];
app.EditField_110.HorizontalAlignment =
'center'; % Create EditField_114
app.EditField_114 =
app.EditField_110.Position = [492 534 uieditfield(app.UIFigure, 'numeric');
40 22];
app.EditField_110.Value app.EditField_114.HorizontalAlignment =
= 'x10'; 'center';

% Create EditField_111 app.EditField_114.FontName =


app.EditField_111 = 'Terminal';
uieditfield(app.UIFigure, 'numeric');
app.EditField_114.FontSize = 18;
app.EditField_111.HorizontalAlignment =
'center';
% Create EditField_118
app.EditField_114.BackgroundColor = app.EditField_118 =
[0.949 1 0.651]; uieditfield(app.UIFigure, 'numeric');

app.EditField_114.Position = [582 338 app.EditField_118.HorizontalAlignment =


40 40]; 'center';

% Create EditField_115 app.EditField_118.FontName =


app.EditField_115 = 'Terminal';
uieditfield(app.UIFigure, 'numeric');
app.EditField_118.FontSize = 18;
app.EditField_115.HorizontalAlignment =
'center'; app.EditField_118.BackgroundColor =
[0.949 1 0.651];
app.EditField_115.FontName =
'Terminal'; app.EditField_118.Position = [582 138
40 40];
app.EditField_115.FontSize = 18;
% Create EditField_119
app.EditField_115.BackgroundColor = app.EditField_119 =
[0.949 1 0.651]; uieditfield(app.UIFigure, 'numeric');

app.EditField_115.Position = [582 288 app.EditField_119.HorizontalAlignment =


40 40]; 'center';

% Create EditField_116 app.EditField_119.FontName =


app.EditField_116 = 'Terminal';
uieditfield(app.UIFigure, 'numeric');
app.EditField_119.FontSize = 18;
app.EditField_116.HorizontalAlignment =
'center'; app.EditField_119.BackgroundColor =
[0.949 1 0.651];
app.EditField_116.FontName =
'Terminal'; app.EditField_119.Position = [582 88 40
40];
app.EditField_116.FontSize = 18;
% Create EditField_120
app.EditField_116.BackgroundColor = app.EditField_120 =
[0.949 1 0.651]; uieditfield(app.UIFigure, 'numeric');

app.EditField_116.Position = [582 238 app.EditField_120.HorizontalAlignment =


40 40]; 'center';

% Create EditField_117 app.EditField_120.FontName =


app.EditField_117 = 'Terminal';
uieditfield(app.UIFigure, 'numeric');
app.EditField_120.FontSize = 18;
app.EditField_117.HorizontalAlignment =
'center'; app.EditField_120.BackgroundColor =
[0.949 1 0.651];
app.EditField_117.FontName =
'Terminal'; app.EditField_120.Position = [582 38 40
40];
app.EditField_117.FontSize = 18;
% Create EditField_121
app.EditField_117.BackgroundColor = app.EditField_121 =
[0.949 1 0.651]; uieditfield(app.UIFigure, 'text');

app.EditField_117.Position = [582 188 app.EditField_121.Editable = 'off';


40 40];
createCallbackFcn(app, @LUButtonPushed,
app.EditField_121.HorizontalAlignment = true);
'center';
app.LUButton.BackgroundColor = [1 0.8
app.EditField_121.Position = [582 534 1];
40 22]; app.LUButton.FontSize =
app.EditField_121.Value 24;
= 'C'; app.LUButton.Visible =
'off';
% Create app.LUButton.Position =
GaussEliminationButton [654 358 156 70];
app.LUButton.Text =
app.GaussEliminationButton = 'LU';
uibutton(app.UIFigure, 'push');
% Create ClearButton
app.GaussEliminationButton.ButtonPushed app.ClearButton =
Fcn = createCallbackFcn(app, uibutton(app.UIFigure, 'push');
@GaussEliminationButtonPushed, true);
app.ClearButton.ButtonPushedFcn =
app.GaussEliminationButton.BackgroundCo createCallbackFcn(app,
lor = [1 0.8 1]; @ClearButtonPushed, true);

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];

app.GaussJordanButton.Position = [655 app.EnterMatrixButton.Text = 'Enter


458 155 70]; Matrix';

app.GaussJordanButton.Text = 'Gauss % Create EditField_123


Jordan'; app.EditField_123 =
uieditfield(app.UIFigure, 'text');
% Create LUButton
app.LUButton = app.EditField_123.Editable = 'off';
uibutton(app.UIFigure, 'push');
app.EditField_123.HorizontalAlignment =
app.LUButton.ButtonPushedFcn = 'center';
app.EditField_123.FontSize = 18; app.EditField_124.HorizontalAlignment =
'center';
app.EditField_123.BackgroundColor =
[0.7176 0.2745 1]; app.EditField_124.FontSize = 18;

app.EditField_123.Position = [42 811 app.EditField_124.BackgroundColor =


490 57]; [0.7176 0.2745 1];
app.EditField_123.Value
= 'Input the Values for Matrix'; app.EditField_124.Visible = 'off';

% Create TextArea app.EditField_124.Position = [581 811


app.TextArea = 468 57];
uitextarea(app.UIFigure); app.EditField_124.Value
app.TextArea.Editable = = 'The Lower Matrix';
'off';
app.TextArea.FontSize = % Create EditField_125
18; app.EditField_125 =
uieditfield(app.UIFigure, 'text');
app.TextArea.BackgroundColor = [0.502
0.749 1]; app.EditField_125.Editable = 'off';
app.TextArea.Visible =
'off'; app.EditField_125.HorizontalAlignment =
app.TextArea.Position = 'center';
[42 579 490 219];
app.EditField_125.FontSize = 36;
% Create TextArea_2
app.TextArea_2 = app.EditField_125.BackgroundColor =
uitextarea(app.UIFigure); [0.7176 0.2745 1];
app.TextArea_2.Editable
= 'off'; app.EditField_125.Visible = 'off';
app.TextArea_2.FontSize
= 18; app.EditField_125.Position = [839 499
211 57];
app.TextArea_2.BackgroundColor = [0.502 app.EditField_125.Value
0.749 1]; = 'Result';
app.TextArea_2.Visible =
'off'; % Create EditField_126
app.TextArea_2.Position app.EditField_126 =
= [582 579 467 220]; uieditfield(app.UIFigure, 'text');

% Create TextArea_3 app.EditField_126.HorizontalAlignment =


app.TextArea_3 = 'center';
uitextarea(app.UIFigure);
app.TextArea_3.Editable app.EditField_126.Position = [546 499
= 'off'; 21 17];
app.TextArea_3.FontSize app.EditField_126.Value
= 18; = '=';

app.TextArea_3.BackgroundColor = [0.502 % Create EditField_127


0.749 1]; app.EditField_127 =
app.TextArea_3.Visible = uieditfield(app.UIFigure, 'text');
'off';
app.TextArea_3.Position app.EditField_127.HorizontalAlignment =
= [839 50 211 427]; 'center';

% Create EditField_124 app.EditField_127.Position = [546 449


app.EditField_124 = 21 17];
uieditfield(app.UIFigure, 'text'); app.EditField_127.Value
= '=';
app.EditField_124.Editable = 'off';
% Create EditField_128 app.EditField_133 =
app.EditField_128 = uieditfield(app.UIFigure, 'text');
uieditfield(app.UIFigure, 'text');
app.EditField_133.HorizontalAlignment =
app.EditField_128.HorizontalAlignment = 'center';
'center';
app.EditField_133.Position = [546 149
app.EditField_128.Position = [546 399 21 17];
21 17]; app.EditField_133.Value
app.EditField_128.Value = '=';
= '=';
% Create EditField_134
% Create EditField_129 app.EditField_134 =
app.EditField_129 = uieditfield(app.UIFigure, 'text');
uieditfield(app.UIFigure, 'text');
app.EditField_134.HorizontalAlignment =
app.EditField_129.HorizontalAlignment = 'center';
'center';
app.EditField_134.Position = [546 99 21
app.EditField_129.Position = [546 349 17];
21 17]; app.EditField_134.Value
app.EditField_129.Value = '=';
= '=';
% Create EditField_135
% Create EditField_130 app.EditField_135 =
app.EditField_130 = uieditfield(app.UIFigure, 'text');
uieditfield(app.UIFigure, 'text');
app.EditField_135.HorizontalAlignment =
app.EditField_130.HorizontalAlignment = 'center';
'center';
app.EditField_135.Position = [546 50 21
app.EditField_130.Position = [546 300 17];
21 17]; app.EditField_135.Value
app.EditField_130.Value = '=';
= '=';
% Create EditField_136
% Create EditField_131 app.EditField_136 =
app.EditField_131 = uieditfield(app.UIFigure, 'text');
uieditfield(app.UIFigure, 'text');
app.EditField_136.BackgroundColor =
app.EditField_131.HorizontalAlignment = [0.502 0.749 1];
'center';
app.EditField_136.Position = [42 579
app.EditField_131.Position = [546 249 491 219];
21 17];
app.EditField_131.Value % Create ClearButton_2
= '='; app.ClearButton_2 =
uibutton(app.UIFigure, 'push');
% Create EditField_132
app.EditField_132 = app.ClearButton_2.BackgroundColor =
uieditfield(app.UIFigure, 'text'); [0.502 0.749 1];

app.EditField_132.HorizontalAlignment = app.ClearButton_2.FontSize = 24;


'center';
app.ClearButton_2.Position = [655 163
app.EditField_132.Position = [546 199 155 63];
21 17]; app.ClearButton_2.Text =
app.EditField_132.Value 'Clear';
= '=';
% Create LUButton_2
% Create EditField_133
app.LUButton_2 = % Create UIFigure and
uibutton(app.UIFigure, 'push'); components
createComponents(app)
app.LUButton_2.BackgroundColor = [1 0.8
1]; % Register the app with
app.LUButton_2.FontSize App Designer
= 24; registerApp(app,
app.LUButton_2.Position app.UIFigure)
= [654 358 155 70];
app.LUButton_2.Text = if nargout == 0
'LU'; clear app
end
% Create end
GaussEliminationButton_2
% Code that executes before
app.GaussEliminationButton_2 = app deletion
uibutton(app.UIFigure, 'push'); function delete(app)

app.GaussEliminationButton_2.Background % Delete UIFigure when


Color = [1 0.8 1]; app is deleted
delete(app.UIFigure)
app.GaussEliminationButton_2.FontSize = end
14; end
end
app.GaussEliminationButton_2.Position =
[655 258 155 70]; That is the end of this program.
app.GaussEliminationButton_2.Text =
'Gauss Elimination'; 3. RESULTS AND DISCUSSION
% Create
The results obtained from this MATLAB UI-based
GaussJordanButton_2
app.GaussJordanButton_2 linear equations solver, revealed the precision and
= uibutton(app.UIFigure, 'push'); efficiency with which the implemented algorithms,
specifically Gauss Elimination, Gauss-Jordan, and
app.GaussJordanButton_2.BackgroundColor LU Decomposition in solving the linear systems. The
= [1 0.8 1]; calculator is very efficient in carrying out solutions
on different kinds of matrices as well, demonstrating
app.GaussJordanButton_2.FontSize = 18; what sets each aside, as for example when it was
app.GaussJordanButton_2.Position = [655
indicated that in the constant matrix but varying
458 155 70]; constant case, the approach best suited would be that
of the LU Decomposition.
app.GaussJordanButton_2.Text = 'Gauss
Jordan'; Different types of matrices can be typed in, and
instant view of how each treatment function operates
% Show the figure after on them enables even better understanding of what
all components are created exactly is going on and being done in the computer;
app.UIFigure.Visible =
'on';
the solver performs both tasks accurately enough,
end therefore its robustness but also depending on the
end computation algorithm involved, it could show the
least efficiency for higher values of the matrices sizes
% App creation and deletion that implies the possibility that higher system sizes
methods (Access = public) would perform efficiently if optimized or iterative
method were to be employed instead.
% Construct app
function app =
Calculator_Interface_talaga
The project is very helpful for educational purposes 7. REFERENCES
in applying methods for solving linear equations since
it is interactive, accurate, and gives feedback. • MathWorks. (2024). MATLAB Documentation.
Retrieved from
5. CONCLUSIONS AND https://www.mathworks.com/help/matlab/
RECOMMENDATIONS • MathWorks. (2024). MATLAB and Simulink for
Joystick Control. Retrieved from
https://www.mathworks.com/solutions/joystick-
In conclusion, the tool developed in this project is control.html
reliable and user-friendly to solve systems of linear • Rojas, R. (2013). Neural Networks: A Systematic
equations by using Gauss Elimination, Gauss-Jordan, Introduction. Springer. doi:10.1007/978-3-642-
and LU Decomposition methods. With the help of 30136-5
MATLAB's computational power, it makes sure that • Kuroda, H., & Sato, H. (2020). Real-Time Data
accurate and efficient calculations are achieved to Visualization and Processing in MATLAB.
give users a lot of insight into these basic techniques. Journal of Computational Science Education,
This project will, therefore, demonstrate practical 11(2), 29-34.
applications of MATLAB in education and in • Alavi, M. (2018). Data Visualization in
professional life, where linear algebra is critical. MATLAB: A Practical Guide. Springer.
doi:10.1007/978-3-319-78543-1
For future development, it should be improved • Chen, L., & Zhan, H. (2019). User Interface
with further enhanced features like more Design in MATLAB. International Journal of
Computer Applications, 975, 1-5.
sophisticated matrix operations, error-handling
doi:10.5120/ijca2019918953
mechanisms, and handling large matrix sizes. It
• Smith, J., & Johnson, K. (2022). Interfacing
should be further developed by incorporating
Joysticks with Microcontrollers. In Embedded
methods like matrix inversion and eigenvalue Systems Handbook (pp. 305-320). CRC Press.
calculation into the tool, which will increase the
usability of the tool. In addition, if a step-by-step
guide is available within the tool, it would make the
task even easier for those new to this area.

6. ACKNOWLEDGEMENTS

The researchers would like to thank all those who


supported and contributed to the successful
completion of this project. Special thanks go to the
people who gave us advice and invaluable guidance
and insights in each of the stages of the development
process. And for their unwavering support and
encouragement, which motivated me to go the
distance and achieve my goals: to friends, and
especially family.
8. APPENDIX
Matrix Calculator Interface:
Main Program:

You might also like