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: meshBoundaryEdges.m
    path of file: ./repos/matGeom/matGeom/meshes3d
    
    the code of the file until where you have to start completion: function BE = meshBoundaryEdges(varargin)
%MESHBOUNDARYEDGES Determine the boundary edges of a mesh.
%
%   BE = meshBoundaryEdges(V, F)
%   Determine for each edge of the mesh if it is a boundary edge of the 
%   mesh.
%
%   Example
%     run createTrefoilKnot.m
%     f2 = triangulateFaces(f2);
%     % clip the mesh with a plane
%     plane = createPlane([0 0 0], [-1 -2 3]);
%     [v2, f2] = clipMeshVertices(v2, f2, plane, 'shape', 'plane');
%     % draw the mesh
%     figure('color','w'); drawMesh(v2, f2); axis equal; view(3);
%     % calculate the boundary edges
%     be2 = meshBoundaryEdges(v2, f2);
%     % draw boundary edges
%     drawEdge3d([v2(be2(:,1),:) v2(be2(:,2),:)], 'LineWidth',4,'Color','g')
%
%   See also 
%     meshes3d, meshBoundary, meshBoundaryVertexIndices, meshEdgeFaces, 
%     meshBoundaryEdgeIndices
%
%   Source:
%     is_boundary_facet.m by Alec Jacobson:
%       https://github.com/alecjacobson/gptoolbox

    
function BE = meshBoundaryEdges(varargin)
%MESHBOUNDARYEDGES Determine the boundary edges of a mesh.
%
%   BE = meshBoundaryEdges(V, F)
%   Determine for each edge of the mesh if it is a boundary edge of the 
%   mesh.
%
%   Example
%     run createTrefoilKnot.m
%     f2 = triangulateFaces(f2);
%     % clip the mesh with a plane
%     plane = createPlane([0 0 0], [-1 -2 3]);
%     [v2, f2] = clipMeshVertices(v2, f2, plane, 'shape', 'plane');
%     % draw the mesh
%     figure('color','w'); drawMesh(v2, f2); axis equal; view(3);
%     % calculate the boundary edges
%     be2 = meshBoundaryEdges(v2, f2);
%     % draw boundary edges
%     drawEdge3d([v2(be2(:,1),:) v2(be2(:,2),:)], 'LineWidth',4,'Color','g')
%
%   See also 
%     meshes3d, meshBoundary, meshBoundaryVertexIndices, meshEdgeFaces, 
%     meshBoundaryEdgeIndices
%
%   Source:
%     is_boundary_facet.m by Alec Jacobson:
%       https://github.com/alecjacobson/gptoolbox

% ------
% Author: oqilipo
% E-mail: N/A
% Created: 2023-05-15, using Matlab 9.13.0.2080170 (R2022b) Update 1
% Copyright 2023

[V, E, F] = parseMeshData(varargin{:});

% Compute edge-vertex map if not specified
if isempty(E)
    E = meshEdges(V, F);
end