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_parcellation_to_annot.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 CBIG_pFIC_parcellation_to_annot(lh_label, rh_label, lh_filename, rh_filename, colortable)
% CBIG_pFIC_parcellation_to_annot(lh_label, rh_label, lh_filename, rh_filename, colortable)
% This function writes the parcellation file into a annot file which can be
% used for plotting figures
% Input:
%   - lh_label: 163842-by-1 parcellation label for left hemisphere
%   - rh_label: 163842-by-1 parcellation label for right hemisphere
%   - lh_filename: filename used to save left hemisphere annot file

    
function CBIG_pFIC_parcellation_to_annot(lh_label, rh_label, lh_filename, rh_filename, colortable)
% CBIG_pFIC_parcellation_to_annot(lh_label, rh_label, lh_filename, rh_filename, colortable)
% This function writes the parcellation file into a annot file which can be
% used for plotting figures
% Input:
%   - lh_label: 163842-by-1 parcellation label for left hemisphere
%   - rh_label: 163842-by-1 parcellation label for right hemisphere
%   - lh_filename: filename used to save left hemisphere annot file
%   - rh_filename: filename used to save right hemisphere annot file
%   - colortable: a n-by-3 matrix, n is the number colors, and 3 columns
%   correpsond to the RGB value 
% Written by CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
    
    if(size(lh_label, 1) ~= 1)
        lh_label = lh_label';
    end
    
    if(size(rh_label, 1) ~= 1)
        rh_label = rh_label';
    end

    if(size(lh_label, 2) ~= size(rh_label, 2))
        error('size of lh_label not equal rh_label');
    end