Hello, I have already implemented a matlab program for the question of lu decomposition, I need your help in formatting and commenting the code as per the below rules, can you kindly make the changes for me -------------------------Here are the styleguide details and after that is my code which needs to be formatted MATLAB Functions
All MATLAB functions shall have the following format:
function [c,d] = ubitname_ppN(a,b)
%UBITNAME_PPN Summary of this function goes here
%
% Inputs:
% a - One-line description of variable a, expected data type, and/or values
% b - One-line description of variable b, expected data type, and/or values
%
% Outputs:
% c - One-line description of variable c, expected data type, and/or values
% d - One-line description of variable d, expected data type, and/or values
Code_line_1;
if a==1
Code_line_2;
elseif a==2
Code_line 3;
end
for i=1:10
if a==i
Code_line_4;
else
Code_line_5;
end
end
switch a
case 1
Code_line_6;
otherwise
Code_line_7;
end
end % ubitname_ppN
1
For all functions ubitname is replace with your ubitname. In the case of paired programming
problems this would be replaced with ubitname1 ubitname2.
The first line of the file must be the function declaration. This is followed by the filename fully
capitalized and a short one or two line summary of the function purpose, followed by a blank
comment line. The next line must contain a tab followed by Inputs:. The inputs are then
described, one on each line following the ordering of the function call with two tabs preceding
each variable name and a - separating the variable and the description. Each input variable
must provide a single line description of the expected input with a data type and/or values if
appropriate. If no input variables are present then the line following Inputs: shall contain two
tabs followed by the text No input variables present. Once all inputs have been described
a blank comment line is entered. Following this blank comment line all of the outputs are
described following the same requirements and formatting as the inputs, replacing all of the
words input with output, matching the appropriate case. Do not include any comment lines
below the final output variable description or No output variables present, as appropriate.
After the last comment line in the header block include a blank line before beginning your code.
For the end corresponding to the function keyword enter a comment with the function name,
as shown above.
All lines in the header description must begin with a % in the first character location for each
line. All code must be indented one tab from the function and it’s associated end keywords.
All code contained within if, else, elseif, switch, case, otherwise, for, or while structures
must also be indented to clearly show they are part of said structure.
If there are any additional functions in the file they must all conform to this style guide.
3 Python Functions
All Python functions shall have the following format:
import module1 as md1
import module2 as md2
def functionName(a, b):
#Summary of this function goes here
#
# Inputs:
# a - Description of variable a, including expected data type and/or values
# b - Description of variable b, including expected data type and/or values
#
# Outputs:
# c - Description of variable c, including expected data type and/or values
# d - Description of variable d, including expected data type and/or values
Code_line_1
for i in range(b):
Code_line_2
c = a + b
d = a - b
2
return c, d
After declaration of the function include a short one or two line summary of the function
followed by a blank line. Then describe all inputs and output in a similar manner to the
MATLAB comments above. As Python is whitespace sensitive all code with already be properly
formatted.---------------------------------Follow the above instructions and formatt the  below code accordingly --------------------------------------------------------------------------function [L,U,P] = hbommaka_aboda_pp12(A)

x = length(A);  
L = zeros(x); 
U = zeros(x); 
P = eye(x);                        
for y=1:x
    [~,a] = max(abs(A(y:end,y)));   
     a = x-(x-y+1)+a;    
     A([y a],:) = A([a y],:);       
     P([y a],:) = P([a y],:);
     L([y a],:) = L([a y],:);       
     L(y:x,y) = A(y:x,y) / A(y,y);  
     U(y,1:x) = A(y,1:x);           
     A(y+1:x,1:x) = A(y+1:x,1:x) - L(y+1:x,y)*A(y,1:x);
end
U(:,end) = A(:,end);