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: logicRemoveInterior.m
    path of file: ./repos/GIBBON/lib
    
    the code of the file until where you have to start completion: function [Lb]=logicRemoveInterior(L)

% function [Lb]=logicRemoveInterior(L)
% ------------------------------------------------------------------------
% This function removes the interior entries for the input logic L.
% Interior entries are those fully surrounded by neighbours (e.g. in 3D all
% entries which are attached to a top, bottom, left, right, front, and a
% back neighbour).
% Vectors and n-dimensional arrays are supported. 
% 
%
% Kevin Mattheus Moerman
% gibbon.toolbox@gmail.com
% 
% Change log:
% 2018/06/14 Created as alternative to bwmorph3 which requires a special
% toolbox and is from R2018a. 
%------------------------------------------------------------------------


    
function [Lb]=logicRemoveInterior(L)

% function [Lb]=logicRemoveInterior(L)
% ------------------------------------------------------------------------
% This function removes the interior entries for the input logic L.
% Interior entries are those fully surrounded by neighbours (e.g. in 3D all
% entries which are attached to a top, bottom, left, right, front, and a
% back neighbour).
% Vectors and n-dimensional arrays are supported. 
% 
%
% Kevin Mattheus Moerman
% gibbon.toolbox@gmail.com
% 
% Change log:
% 2018/06/14 Created as alternative to bwmorph3 which requires a special
% toolbox and is from R2018a. 
%------------------------------------------------------------------------

if ~isempty(L)
    if isvector(L) %Handle vector
        h=ones(1,3);
        if ~isrow(L)
            h=h'; %Transpose for column
        end