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: CBIG_pFIC_BuildTwoVertThickBoundary.m
    path of file: ./repos/CBIG/stable_projects/fMRI_dynamics/Zhang2024_pFIC/util/plot
    
    the code of the file until where you have to start completion: function [lh_up_labels,rh_up_labels] = ...
    CBIG_pFIC_BuildTwoVertThickBoundary(lh_avg_mesh,rh_avg_mesh,lh_full_label,rh_full_label)

% [lh_up_labels,rh_up_labels] = ...
%    CBIG_pFIC_BuildTwoVertThickBoundary(lh_avg_mesh,rh_avg_mesh,lh_full_label,rh_full_label)
% This function defines the boundary for a given parcellation

    
function [lh_up_labels,rh_up_labels] = ...
    CBIG_pFIC_BuildTwoVertThickBoundary(lh_avg_mesh,rh_avg_mesh,lh_full_label,rh_full_label)

% [lh_up_labels,rh_up_labels] = ...
%    CBIG_pFIC_BuildTwoVertThickBoundary(lh_avg_mesh,rh_avg_mesh,lh_full_label,rh_full_label)
% This function defines the boundary for a given parcellation
% by default, no parcellation comes with pre-defined boundaries
% this function declares a vertex as non-boundary only if its neighbored by vertices with the same label
% Input:
%   - lh_avg_mesh: a struct with fslr 164k surface space information
%   - rh_avg_mesh: a struct with fslr 164k surface space information 
%   These 2 structures can be read in using the following commands:
%       lh_avg_mesh = CBIG_read_fslr_surface('lh', 'fs_LR_164k', 'very_inflated');
%       rh_avg_mesh = CBIG_read_fslr_surface('rh', 'fs_LR_164k', 'very_inflated');
%   - lh_full_label: 163842-by-1 parcellation label for left hemisphere
%   - rh_full_label: 163842-by-1 parcellation label for reft hemisphere
% Output:
%   - lh_up_labels: 163842-by-1 parcellation label for left hemisphere with
%   boundary emphasized
%   - rh_up_labels: 163842-by-1 parcellation label for reft hemisphere with
%   boundary emphasized
% Written by CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md

if(size(lh_full_label, 1) == 1)
   lh_full_label = lh_full_label';
end