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: dualLattice.m
    path of file: ./repos/GIBBON/lib
    
    the code of the file until where you have to start completion: function [FT,VT,CT]=dualLattice(varargin)

% function [FT,VT,CT]=dualLattice(E,V,shrinkFactor,cladOpt)
% ------------------------------------------------------------------------
%
%
%
% 2021/08/16: KMM Fixed error in cladding offset direction. Changed to "out
% of surface offset"
%
% ------------------------------------------------------------------------

%%

switch nargin
    case 2
        E=varargin{1};
        V=varargin{2};

    
function [FT,VT,CT]=dualLattice(varargin)

% function [FT,VT,CT]=dualLattice(E,V,shrinkFactor,cladOpt)
% ------------------------------------------------------------------------
%
%
%
% 2021/08/16: KMM Fixed error in cladding offset direction. Changed to "out
% of surface offset"
%
% ------------------------------------------------------------------------

%%

switch nargin
    case 2
        E=varargin{1};
        V=varargin{2};
        shrinkFactor=0.2;
        cladOpt=1;
    case 3
        E=varargin{1};
        V=varargin{2};
        shrinkFactor=varargin{3};
        cladOpt=1;
    case 4
        E=varargin{1};
        V=varargin{2};
        shrinkFactor=varargin{3};
        cladOpt=varargin{4};
end