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: texture_coords.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function [TC] = texture_coords(V,flip_y)
  % TEXTURE_COORDS normalize mesh x and y coordinates for use as texture
  % coordinates
  %
  % [TC] = texture_coords(V,flip_y)
  % 
  % Inputs:
  %   V  #V by 2 list of mesh vertex positions
  %   flip_y  boolean whether to flip texture coordinates, {true}

    
function [TC] = texture_coords(V,flip_y)
  % TEXTURE_COORDS normalize mesh x and y coordinates for use as texture
  % coordinates
  %
  % [TC] = texture_coords(V,flip_y)
  % 
  % Inputs:
  %   V  #V by 2 list of mesh vertex positions
  %   flip_y  boolean whether to flip texture coordinates, {true}
  % Outputs
  %   TC  #V by 2 list of mesh texture coordinates, between 0 and 1
  %
  % normalize texture coordinates to be between zero and 1
  %

  TC = [ ...
    (V(:,1)-min(V(:,1)))/(max(V(:,1))-min(V(:,1))) ...
    (V(:,2)-min(V(:,2)))/(max(V(:,2))-min(V(:,2)))];

  if ~exist('flip_y','var')
    flip_y = true;
  end