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: utm2deg.m
    path of file: ./repos/eviltransform/matlab/UTM
    
    the code of the file until where you have to start completion: function  [Lat,Lon] = utm2deg(X,Y,utmzone)
    % -------------------------------------------------------------------------
    % [Lat,Lon] = utm2deg(x,y,utmzone)
    % Description: Function to convert vectors of UTM coordinates into Lat/Lon vectors (WGS84).
    % Some code has been extracted from UTMIP.m function by Gabriel Ruiz
    % Martinez and utm2deg.m by Rafael Palacios
    % This is a vectorized version based mostly of Rafael Palacios' version
    % Inputs:
    %    X vector or scaler,

    
function  [Lat,Lon] = utm2deg(X,Y,utmzone)
    % -------------------------------------------------------------------------
    % [Lat,Lon] = utm2deg(x,y,utmzone)
    % Description: Function to convert vectors of UTM coordinates into Lat/Lon vectors (WGS84).
    % Some code has been extracted from UTMIP.m function by Gabriel Ruiz
    % Martinez and utm2deg.m by Rafael Palacios
    % This is a vectorized version based mostly of Rafael Palacios' version
    % Inputs:
    %    X vector or scaler,
    %    Y vector or scaler,
    %    utmzone of form '15N' or  '25S' no spaces and only north or south
    %    designation
    % Outputs:
    %    Lat: Latitude vector or scaler.   Degrees.  +ddd.ddddd  WGS84
    %    Lon: Longitude vector or scaler.  Degrees.  +ddd.ddddd  WGS84
    %
    % Example 1:
    % x=[ 458731;  407653;  239027;  230253;  343898;  362850];
    % y=[4462881; 5126290; 4163083; 3171843; 4302285; 2772478];
    % utmzone='30N';
    % [Lat, Lon]=utm2deg(X,Y,utmzone);
    %
    % Author:
    %   Aaron Close
    %   Close Consulting
    %   Houston, TX
    %%-------------------------------------------------------------------------
    % Argument checking
    %
    error(nargchk(3, 3, nargin)); %3 arguments required
    n1=length(X);
    n2=length(X);
    if (n1~=n2)
        error('x,y vectors should have the same number or rows');
    end