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: PerimeterVolumeProblem.m
    path of file: ./repos/Swan/Topology Optimization/Applications/PerimeterExperiments
    
    the code of the file until where you have to start completion: classdef PerimeterVolumeProblem < handle
    
    properties (Access = public)
        
    end
    
    properties (Access = private)
        fileName
        inputFile
        topOptSet
        topOptProblem
        mesh
        nx
        ny
        type
    end
    
    methods 
    
function createMesh(obj)
            switch obj.type
                case 'TRIANGLE'
                    obj.createTriangularMesh();
                case 'QUAD'
                    obj.createQuadMesh();
            end
        end
        
        function createTriangularMesh(obj)
            xN = linspace(0,1,obj.nx);
            yN = linspace(0,1,obj.ny);
            x = repmat(xN',1,obj.ny);
            y = repmat(yN,obj.nx,1);
            s.coord = [x(:) y(:)];
            s.connec = delaunay(s.coord(:,1),s.coord(:,2));
            obj.mesh = Mesh.create(s);
        end