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: welcen2.m
    path of file: ./repos/jigsaw-matlab/tools/scorecard
    
    the code of the file until where you have to start completion: function [ok] = welcen2(pp,pw,t2)
%WELCEN2 'well-centred' status for elements of a 2-simplex
%triangulation embedded in euclidean space.
%   [WC] = WELCEN2(PP,PW,TT) returns TRUE for triangles that
%   contain their own 'dual' vertex in their interiors. PP
%   is a V-by-2 list of XY coordinates, TT is a T-by-3 list
%   of triangle indicies, and PW is a V-by-1 array of vertex
%   weights. When PW = 0, the dual mesh is a Voronoi diagram
%   and dual vertices are triangle circumcentres.

%   Darren Engwirda : 2017 --
%   Email           : d.engwirda@gmail.com
%   Last updated    : 19/03/2018

%---------------------------------------------- basic checks

    
function [ok] = welcen2(pp,pw,t2)
%WELCEN2 'well-centred' status for elements of a 2-simplex
%triangulation embedded in euclidean space.
%   [WC] = WELCEN2(PP,PW,TT) returns TRUE for triangles that
%   contain their own 'dual' vertex in their interiors. PP
%   is a V-by-2 list of XY coordinates, TT is a T-by-3 list
%   of triangle indicies, and PW is a V-by-1 array of vertex
%   weights. When PW = 0, the dual mesh is a Voronoi diagram
%   and dual vertices are triangle circumcentres.

%   Darren Engwirda : 2017 --
%   Email           : d.engwirda@gmail.com
%   Last updated    : 19/03/2018

%---------------------------------------------- basic checks
    if ( ~isnumeric(pp) || ...
         ~isnumeric(pw) || ...
         ~isnumeric(t2) )
        error('welcen2:incorrectInputClass' , ...
            'Incorrect input class.');
    end