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: readSVG.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function [P,S,C,E] = readSVG(filename)
  % READSVG  Read <polygon>, <polyline> from a .svg file
  %
  % P = readSVG(filename)
  %
  % Input:
  %   filename  path to .svg file
  % Output:
  %   P  #P list of polylines, if the polygon is closed the the last point will
  %      be the same as the first.
  %   S  #P by 3 list of stroke colors
  %   C  #C list of cubic bezir paths
  %
  % Note: order is **not** maintained
  %
  % Example:

    
function [P,S,C,E] = readSVG(filename)
  % READSVG  Read <polygon>, <polyline> from a .svg file
  %
  % P = readSVG(filename)
  %
  % Input:
  %   filename  path to .svg file
  % Output:
  %   P  #P list of polylines, if the polygon is closed the the last point will
  %      be the same as the first.
  %   S  #P by 3 list of stroke colors
  %   C  #C list of cubic bezir paths
  %
  % Note: order is **not** maintained
  %
  % Example:
  %   % read polylines from an svg 
  %   [P,S] = readSVG('polylines.svg');

  tic;
  % xmlread appears to be buggy if filename contains ~ etc.
  if isunix
    [~,filename] = system(sprintf('find %s',filename));
    filename = strtrim(filename);
  end