You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: maximum_value.m
    path of file: ./repos/code-backup/6th_sem/Systemfiles_Anubhab/FINALMATLAB/Suggestion2/question2/Jacobi
    
    the code of the file until where you have to start completion: %function [i,j]=maximum_value(a,n) : Function to get index of maximum value
%from off diagonal terms of a(,).
function [i,j]=maximum_value(a,n)
amax=abs(a(1,2));
i=1;
j=2;
    
function [i,j]=maximum_value(a,n) : Function to get index of maximum value
%from off diagonal terms of a(,).
function [i,j]=maximum_value(a,n)
amax=abs(a(1,2));
i=1;
j=2;
    for i1=1:n
        for j1=i1+1:n
        amax1=abs(a(i1,j1));
            if amax1>amax
                amax=amax1;
                i=i1;
                j=j1;
            end