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: plotElipse.m
    path of file: ./repos/VBA-toolbox/core/display
    
    the code of the file until where you have to start completion: function h = plotElipse(center,axesLength,hParent)

% This function plots 2D-ellipses in given axes

    
function h = plotElipse(center,axesLength,hParent)

% This function plots 2D-ellipses in given axes

try
    haf = hParent;
    isax = isequal(get(haf,'type'),'axes');
    if ~isax
        hf = figure('color',ones(1,3));
        haf = axes('parent',hf,'nextplot','add');
        box(haf,'on')
    end