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: batman.m
    path of file: ./repos/GIBBON/lib
    
    the code of the file until where you have to start completion: function [varargout]=batman(n)

% function [varargout]=batman(n)
% ------------------------------------------------------------------------
% The |batman| function implements a particular version of the so called
% batmat-equation, a curve defining the batman logo. The input for this
% function is the number of desired points n. The user may request a sigle
% nx2 output array or two nx1 arrays (x and y coordinates). 
%
% This is a MATLAB implementation of the parameterised Batman equation
% presented by Jerome White (http://www.talljerome.com/ @talljerome,
% https://youtu.be/oaIsCJw0QG8), in particular the form presented here: 
% https://www.desmos.com/calculator/ajnzwedvql
% Modification: The batman is scaled to be 2 in width. 
% 
% 2020/05/05
% ------------------------------------------------------------------------
%%


t=linspace(0,8,1000)';

t1=abs(t-1);
t2=abs(t-2);
t3=abs(t-3);

    
function [varargout]=batman(n)

% function [varargout]=batman(n)
% ------------------------------------------------------------------------
% The |batman| function implements a particular version of the so called
% batmat-equation, a curve defining the batman logo. The input for this
% function is the number of desired points n. The user may request a sigle
% nx2 output array or two nx1 arrays (x and y coordinates). 
%
% This is a MATLAB implementation of the parameterised Batman equation
% presented by Jerome White (http://www.talljerome.com/ @talljerome,
% https://youtu.be/oaIsCJw0QG8), in particular the form presented here: 
% https://www.desmos.com/calculator/ajnzwedvql
% Modification: The batman is scaled to be 2 in width. 
% 
% 2020/05/05
% ------------------------------------------------------------------------
%%


t=linspace(0,8,1000)';

t1=abs(t-1);
t2=abs(t-2);
t3=abs(t-3);
t4=abs(t-4);
t5=abs(t-5);
t7=abs(t-7);
t8=abs(t-8);

x=(0.3*t)+(0.2*t1)+(2.2*t2)-(2.7*t3)-(3*t5)+(3*t7)...
    +5*sin((pi/4)*(t3-t4+1))+((5/4)*((t4-t5-1)).^3)...
    -(5.3*cos((pi/2+asin(47/53)).*(1/2*(t7-t8-1))))+2.8;
y= 3/2*(t1-t2)+29/4*(t5-t4)+7/16*(t2-t3-1).^4 ...
    +4.5*sin(pi/4*(t3-t4-1))-(3*sqrt(2)/5)*abs(t5-t7).^(5/2)+ ...
    6.4*sin((pi/2+asin(47/53)).*(1/2*(t7-t8+1))+(asin(56/64)))+4.95;

V=[x y;flipud(-x(2:end