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: HELP_hex2tet.m
    path of file: ./repos/GIBBON/docs
    
    the code of the file until where you have to start completion: %% hex2tet
% Below is a demonstration of the features of the |hex2tet| function

%% Syntax
% |[TET,Vtet,C]=hex2tet(HEX,V,C,tetOpt);|

%% Description
%

%%
clear; close all; clc;

%%
% Plot settings
fontSize=25;
faceAlpha1=0.25;
edgeWidth=3;
markerSize=75;
cMap=gjet(6);

%% Examples
%

%% Converting a hexahedral element to tetrahedral elements

%%
% Creating an example hexahedral element
V=[0 0 0; 1 0 0; 1 1 0; 0 1 0; 0 0 1; 1 0 1; 1 1 1; 0 1 1;]; %nodes
E=1:8; %Element

%%

[F,CF]=element2
    
function

%% Syntax
% |[TET,Vtet,C]=hex2tet(HEX,V,C,tetOpt);|

%% Description
%

%%
clear; close all; clc;

%%
% Plot settings
fontSize=25;
faceAlpha1=0.25;
edgeWidth=3;
markerSize=75;
cMap=gjet(6);

%% Examples
%

%% Converting a hexahedral element to tetrahedral elements

%%
% Creating an example hexahedral element
V=[0 0 0; 1 0 0; 1 1 0; 0 1 0; 0 0 1; 1 0 1; 1 1 1; 0 1 1;]; %nodes
E=1:8; %Element

%%

[F,CF]=element2patch(E);  %Patch data for plotting

cFigure;
subplot(2,3,1); hold on;
title('Original element set','FontSize',fontSize);
gpatch(F,V,cMap(1,:),'k',1,edgeWidth);
% patchNormPlot(F,V,0.25);
plotV(V,'k.','MarkerSize',markerSize);
colormap(cMap);
axisGeom(gca,fontSize);
axis off; 

for q=1:1:5
    
    % Subdeviding the hexahedral element
    convertMethod=q; %Corresponse
    [Es,Vs,Cs]=hex2tet(E,V,[],convertMethod);
    [Fs,CFs]=element2patch(Es); %Patch data for plotting
    
    subplot(2,3,q+1); hold on;
    title(['Converted, method: ',num2str(q)],'FontSize',fontSize);
    gpatch(Fs,Vs,cMap(q+1,:),'k',0.5,edgeWidth);
    patchNormPlot(Fs,Vs,0.25);
    plotV(Vs,'k.','MarkerSize',markerSize);
    
    colormap(cMap);
    axisGeom(gca,fontSize);
    axis off; 
end