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

%%
clear; close all; clc;

%% Syntax
% |[groupIndexVertices,groupIndexFaces]=groupVertices(F,V,waitBarOption);|

%% Description
% This function takes in a description of a tesselation, consisting of an
% array F (faces or elements), and V (vertices). The output is represents
% the group index for each point in groupIndexVertices and the group index
% of each face in groupIndexFaces. Vertices which are connected to the same
% mesh obtain the same group indes. Face indices are derived from the
% vertex indices. 

%% Examples

%% Example 1: Seperating patch data into groups

%%
% Creating test data consisting of seperates sets faces and vertices

numGroups=3; 
F_cell=cell(1,numGroups); 
V_cell=cell(1,numGroups); 
    
function

%%
clear; close all; clc;

%% Syntax
% |[groupIndexVertices,groupIndexFaces]=groupVertices(F,V,waitBarOption);|

%% Description
% This function takes in a description of a tesselation, consisting of an
% array F (faces or elements), and V (vertices). The output is represents
% the group index for each point in groupIndexVertices and the group index
% of each face in groupIndexFaces. Vertices which are connected to the same
% mesh obtain the same group indes. Face indices are derived from the
% vertex indices. 

%% Examples

%% Example 1: Seperating patch data into groups

%%
% Creating test data consisting of seperates sets faces and vertices

numGroups=3; 
F_cell=cell(1,numGroups); 
V_cell=cell(1,numGroups); 
for q=1:1:numGroups
    switch q
        case 1
            [F,V]=geoSphere(3,1);
        case 2
            [F,V]=stanford_bunny('g');
        case 3
            [F,V]=graphicsModels(3);
    end