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: my_refl_mlm.m
    path of file: ./repos/mpsim/lib/snr/layer
    
    the code of the file until where you have to start completion: function [H_rc,V_rc] = my_refl_mlm (thickness,eps,fr,angle)
    re_eps = real(eps);
    im_eps = imag(eps);
    
    num = numel(thickness) + 2;  % number of layers plus two half-spaces

    
function [H_rc,V_rc] = my_refl_mlm (thickness,eps,fr,angle)
    re_eps = real(eps);
    im_eps = imag(eps);
    
    num = numel(thickness) + 2;  % number of layers plus two half-spaces
    depth = [0; cumsum(thickness(:))];
    
    % As per original refl_mlm: "We start from the bottom[most] layer 1"
    depth = flipud(depth);
    re_eps = flipud(re_eps(:));
    im_eps = flipud(im_eps(:));
    
    [H_rc,V_rc] = refl_mlm(depth,num,re_eps,im_eps,fr,angle);
end