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: merge1.m
    path of file: ./repos/code-backup/6th_sem/MATLABCIA/AssignmentSheet2/SortandSearch(1,2,3)
    
    the code of the file until where you have to start completion: %function [a1,id1,n1]=merge1(a,id,n) : Function to sort data using merge
%sort method
function [a,id,n]=merge1(a,id,n)
% initializing aux() and iux() to 0
aux=zeros(n);
iux=zeros(n);
size=1;
while size<=n
    
function [a1,id1,n1]=merge1(a,id,n) : Function to sort data using merge
%sort method
function [a,id,n]=merge1(a,id,n)
% initializing aux() and iux() to 0
aux=zeros(n);
iux=zeros(n);
size=1;
while size<=n
ix=1;
ia=1;
    while (ia+size)<=n
        ua=ia+size-1;
        ib=ua+1;
        if (ib+size-1)<=n
            ub=ib+size-1;
        else
            ub=n;
        end