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: vertRef.m
    path of file: ./repos/paper-simulation/Qu2018Harnessing
    
    the code of the file until where you have to start completion: function [vert_ref,angle_inward,angle_outward] = vertRef(robot_num,vert_affine)
% polytope
angle_central = 2*pi/robot_num;
if ~mod(robot_num,2)
    vert_ref = [cos([0 kron(1:(robot_num-1)/2,[1,-1]) robot_num/2]*angle_central)',...
        sin([0 kron(1:(robot_num-1)/2,[1,-1]) robot_num/2]*angle_central)'];

    
function [vert_ref,angle_inward,angle_outward] = vertRef(robot_num,vert_affine)
% polytope
angle_central = 2*pi/robot_num;
if ~mod(robot_num,2)
    vert_ref = [cos([0 kron(1:(robot_num-1)/2,[1,-1]) robot_num/2]*angle_central)',...
        sin([0 kron(1:(robot_num-1)/2,[1,-1]) robot_num/2]*angle_central)'];
else
    vert_ref = [cos([0 kron(1:(robot_num-1)/2,[1,-1])]*angle_central)',...
        sin([0 kron(1:(robot_num-1)/2,[1,-1])]*angle_central)'];
end