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

%% Syntax
% |[Fc,Vc,indFix2,logicValid,indUni]=patchCleanUnused(F,V);|

%% Description
% Removes unused vertices from patch data

%% Examples

%%
clear; close all; clc;

%%
% Plot settings
fontSize=15;
plotColor1=0.25.*ones(1,3);
plotColor2=0.75.*ones
    
function

%% Syntax
% |[Fc,Vc,indFix2,logicValid,indUni]=patchCleanUnused(F,V);|

%% Description
% Removes unused vertices from patch data

%% Examples

%%
clear; close all; clc;

%%
% Plot settings
fontSize=15;
plotColor1=0.25.*ones(1,3);
plotColor2=0.75.*ones(1,3);
edgeWidth=2;
markerSize=30;

%% Example 1: Removing unused nodes from patch data

%%
% Creating example patch data with unused nodes. This example is a sphere
% triangulation. The sphere is roughly cut in half by deleting half of its
% triangles. However, after the cut operation the nodes which used to be
% used by the deleted half are still present in the vertex array. 

%%
% Defining geodesic dome triangulation
r=1; %sphere radius
n=2; %Refinements
[F,V]=geoSphere(n,r); %The sphere triangulation

%%
% Cropping away a selection of faces
logicKeepVertices=V(:,1)>0; %Logic on vertices
logicKeepFaces=any(logicKeepVertices(F),2); %Logic on faces
F=F(logicKeepFaces,:); %The cropped face list

%%
% Removing unused nodes using |patchCleanUnused|
[Fc,Vc]=patchCleanUnused(F,V);

%%
% Visualize results

cFigure; 
subplot(1,2,1); hold on;
title('Patch data with unused vertices');
hp(1)=gpatch(F,V,'gw','g',1,edgeWidth);
hp(2)=plotV(V,'k.','MarkerSize',markerSize);
legend