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: sample_edges.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function [S,SE] = sample_edges(V,E,samples_per_edge)
  % SAMPLE_EDGES Compute samples_per_edge extra points along each edge in E

    
function [S,SE] = sample_edges(V,E,samples_per_edge)
  % SAMPLE_EDGES Compute samples_per_edge extra points along each edge in E
  % defined over vertices of V.
  %
  % S = sample_edges(V,E,samples_per_edge)
  %
  % Inputs:
  %   V  vertices over which edges are defined, # vertices by dim
  %   E  edge list, # edges by 2
  %   samples_per_edge  number of extra samples to be computed along edge not
  %     including start and end