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

%%
clear; close all; clc;

%% Syntax
% |[volEst]=patchVolume(F,V);|

%% Description
% The patchVolume function computes the volume enclosed by the patch
% elements defined by the faces F and vertices V. 

%% Examples
%
makeAbsolute=0;
for test
    
function

%%
clear; close all; clc;

%% Syntax
% |[volEst]=patchVolume(F,V);|

%% Description
% The patchVolume function computes the volume enclosed by the patch
% elements defined by the faces F and vertices V. 

%% Examples
%
makeAbsolute=0;
for testCase=1:9

switch testCase    
    case 1 %Trianglulated sphere
        r=2;
        ns=5;
        [F,V]=geoSphere(ns,r);         
        volTotalTrue=4/3*pi*r^3; %True theoretical volume
    case 2 %Trianglulated sphere
        r=2;
        ns=6;
        [F,V]=quadSphere(ns,r);         
        volTotalTrue=4/3*pi*r^3; %True theoretical volume

        %Shift randomly to create non-zero centred patch data
        V=V+10.*randn(1,3);
    case 3 %
        %Torus parameters
        r=1; %Sphere radius
        R=2; %Central radius
        nr=76;
        nc=150;
        [F,V]=patchTorus(r,nr,R,nc,'tri');
        volTotalTrue=2*pi^2*r*R; %True theoretical volume
    case 4 %
        %Torus parameters
        r=1; %Sphere radius
        R=2; %Central radius
        nr=76;
        nc=150;
        [F,V]=patchTorus(r,nr,R,nc,'quad');
        volTotalTrue=2*pi^2*r*R; %True theoretical volume
    case 5 %
        %Torus parameters
        r=1; %Sphere radius
        R=2; %Central radius        
        nr=76;
        nc=150;
        [F,V]=patchTorus(r,nr,R,nc,'honey');
        volTotalTrue=2*pi^2*r*R; %True theoretical volume
    case 6 % triangulated box
        boxDim=[5 2 1];
        pointSpacing=1;
        [F,V]=triBox(boxDim,pointSpacing); 
        volTotalTrue=prod(boxDim); %True theoretical volume
    case 7 % quadrangulated box
        boxDim=[5 2 1];
        [F,V]=quadBox(boxDim,[5 2 1]);
        volTotalTrue=prod(boxDim); %True theoretical volume
    case 8 % A mixed mesh consisting of pentahedra and hexahedra
        r=2;
        ns=5;
        [Ft,Vt]=geoSphere(ns,r);
        [V,F]=patch_dual(Vt,Ft);        
        volTotalTrue=4/3*pi*r^3; %True theoretical volume
    case 9 %Trianglulated sphere
        r=2;
        ns=5;
        [F,V]=geoSphere(ns,r);         
        F=fliplr(F);
        volTotalTrue=-4/3*pi*r^3; %True theoretical volume
end